Los Santos Customs [C#]

Install

To install, simply drag the LSCustoms folder into your resources. Be sure to start it in your server.cfg

About This Mod

This mod is a quick and simple solution for customizing cars if you have removed the option from vMenu or blocked client sided scripts. Code is far from perfect; however, releasing for someone who might want to improve this or use this. Support will not be given for the mod.

Screenshots are on the download link

Download

5 Likes

Heiii nice release can you make it in lua so we can translate and edit the price thanks hihi !!

Lol you really want my man to just completely remake it in LUA :rofl:

1 Like

it’s open source so you can do it yourself

Why would he waste his time redoing the code in lua when people like you don’t even take the time to look at the code to begin with??
You can VERY EASILY edit this, and then just recompile it. I hear www.google.com is GREAT for finding answers on how to do things exactly like that!!!

  1. It’s all client side, so there are no prices for anything.
  2. Why would this have to be made into lua for you to translate?? Do you have some weird ability to only see code if it’s lua, otherwise it’s just a blank page??

There are 2 lines in main.cs that could use translating, while most of the strings used are inside menu.cs. Why not actually take a look and see for yourself??

2 Likes

No reason acting like a as*hole. It was just a friendly request from me cause I like his work. I am beginner you were beginner too but thank you for the tips :blush:

1 Like

There are so many people here on the forums that expect to be spoonfed code instead of learning it themselves. “so we can translate and edit the price” to me made it seem like you’re one of those people. As an actual developer, the amount of leaking, stealing, and unwillingness to learn anything that alot of people here exhibit gets under my skin… :confused: Prob shouldn’t have been that big a dick about it. Thats my bad.

1 Like

This

As for the menu, its a simple system, my own initial character creation scripts worked in the same way. Its a nice way to get to grips with the basics for doing this in C# and then build from there.

can somebody help me adding multiple locations for this?

        private static void AddLocations()
        {
            CustomLocations.Add(new Vector3(-3503.19f, -3758.34f, 4.42f)); //LS Customs in Los Santos near Michael's house
            CustomLocations.Add(new Vector3(-3180.9f, -2067.06f, 5.21f)); //LS Customs in Los Santos near Michael's house
            CustomLocations.Add(new Vector3(-4380.21f, -2613.82f, 5.06f)); //LS Customs in Los Santos near Michael's house
        }

all markers work but the menu wont open when i press e
i assume it gets stuck around here

                float MarkerDistance = World.GetDistance(Game.Player.Character.Position, LSCustoms);

i mean how do i do “for _, v in pairs()” in c#??
help?

foreach(Vector3 position in CustomLocations){

}

stupid c# it has the same affect
i mean by the code this suppose to work too… but it wont

            foreach (Vector3 LSCustoms in CustomLocations)
{}

and i tried what you said and it has the same affect like it wont pass thru the distance check

            foreach (Vector3 position in CustomLocations)
            {
                //Gets the float distance between the character and the marker
                float MarkerDistance = World.GetDistance(Game.Player.Character.Position, position);

                //Check Distance
                if (MarkerDistance <= 1.5f) //Checks to make sure the player is within range of the marker

i even tried to add, i guess i just got stupid or somethng

        private static List<Vector3> pozitions = new List<Vector3>
        {
            new Vector3(-4380.21f, -2613.82f, 5.06f),
            new Vector3(-3180.9f, -2067.06f, 5.21f),
            new Vector3(-4380.21f, -2613.82f, 5.06f)
        };