[esx] ls custom + benny's

u have to wait until ur car fully loaded :wink:

No way anyone can get these tires in Bennys pure.
I do not mean the rims but the tires?

@Bryn and @yagizwashere :

Changing the percentages is a lot of work because there are a lot of entries… however, what I did, was force it to use a single amount for the “master” price of the vehicle. For Yagiz, you can set the value to 0 and that should make everything free. I set mine to 1000 just to test, and it worked fine with all the same percentages. All of the prices are calculated as that percentage value in the config.lua file times the value of the vehicle. I modded it so it doesn’t look up the value of the vehicle but just uses a static amount (meaning that the upgrades will the same price for every car). If you want to go through and change every one of the percentage numbers in config.lua you could do it, though, once you make the other adjustment to the client main.lua file. If you set the vehiclePrice to 100, then you can use those percentage numbers as though they’re actual dollars.

Modifications to client\main.lua - there are two places to change - you can search for “vehicleprice = 50000” to find them both.

Change the vehicleprice to whatever you want. 0 for everything free, 100 if you want to go modify all the percentages to get fixed prices, for example.

The 6 lines of code below there, just delete in both places. That’s the code that looks up the actual price of the vehicle. If it doesn’t look it up, it will just use what you set above. The block of code to remove (in both places) is:

for i=1, #Vehicles, 1 do
	if GetEntityModel(vehicle) == GetHashKey(Vehicles[i].model) then
		vehiclePrice = Vehicles[i].price
		break
	end
end

I also added Benny’s garage as an option. In config.lua, add in another block below the ls5 block (I’ve included some already existing code so you can see where I put it):

	ls5 = {
		Pos   = { x = 110.99, y = 6626.39, z = 30.89},
		Size  = {x = 3.0, y = 3.0, z = 0.2},
		Color = {r = 204, g = 204, b = 0},
		Marker= 1,
		Name  = _U('blip_name'),
		Hint  = _U('press_custom')
	},
	
	b1 = {
		Pos   = { x = -222.47, y = -1329.45, z = 30.27},
		Size  = {x = 3.0, y = 3.0, z = 0.2},
		Color = {r = 204, g = 204, b = 0},
		Marker= 1,
		Name  = _U('blip_name'),
		Hint  = _U('press_custom')
	}

}

I set the coordinates right at the back in the empty bay.

3 Likes

How do you link the mechanic job and the ls customs? because you set it to true but it wont let it?

2 Likes

I want to remove all ls custom location except two, for the Bennys.
But after I have either excluded or removed them, the whole script does not work anymore. Specifically, the other two points are no longer working and I no longer see the menu.

EDIT: Nervermind

Can i disable the Map Markers from the lscustom points ? I think not.

Unless you have something else putting those markers on the map (e.g. Lambda menu or other trainers), you should be able to stop the blips from being added by lscustom by removing the blocks you don’t want from the config.lua file.

i must of messed something up
i installed it. maybe i did it wrong local server -
put the file in
cfx-server-data-master > resources > bennys
edited the server.cfg
start bennys

but when i go to bennys the door opens but i cant figure out what button to hit to use it.
maybe i installed wrong idk im really new to this.

help please

In the base mod, the Benny’s location isn’t actually activated. Try going to an LS Customs shop. :slight_smile: If you want to add in the Benny’s location, check my post from 11 days ago about what you can add to the config.

Would it be possible to allow for people to add vehicle extras within the shop? I’ve been searching around for a solution but can’t seem to find one.

1 Like

What do you mean by vehicle extras?

So, some of the vehicles I have, have extras (primarily cop cars, etc). They’re stuff like push bars, spotlights and other cosmetic things. I’ve been able to force some of them to spawn with all of those extras but I’d prefer to not have to do that.

I’ve been searching for a good way to change vehicles liveries and do vehicle extras, but I cant seem to.

1 Like

If those extras are accessible through LS Customs or Benny’s upgrades, you should be able to use this mod. For livery, I have found that this mod works well:

NativeUILua is a prerequisite for the livery menu - it doesn’t specifically say that, but there is a link in the description for it. Note that for addon vehicles you won’t be getting anything but a list that says NULL, but at least you can change livery. Not a problem with the mod, just an issue with addon vehicles not having all the information needed for the livery names.

1 Like

Guys i need some help, how to make only boss can using / modif car lscustom ?

Hi everyone, I just can’t seem to get my config file to work, even if its just the base config file from the github, it keeps giving me this:

Error parsing script @esx_lscustom/config.lua in resource esx_lscustom: @esx_lscustom/config.lua:1: unexpected symbol near ‘<\239>’

Has anyone else ran across this? It’s killing me

I did a quick search of the forum for that error message, and it comes up in multiple projects in different files, but not very often.

Try downloading the config.lua file and inserting it without ever opening it in a text editor.

can someone help me please
i want to remove mechanic society and make the mechanic do the custome but the money take from the nearest player or the vehicle owner please

hmm so been trying to get this going, no bennys blip on map and no cars i bring in make the menu work, i also changed my job to mechanic and still nothing, any ideas?

Are you just going to benny’s, or are you trying LS Custom shops? Without modification, this only works at LS Custom shops (but it has all the Benny’s upgrades available). It’s posted up-thread how to modify it to add in Benny’s.

oh…yes i have the ls custom one and it works. i will read above some more on how to add bennys thanks.

Hi, I got a clean server which I configured and started
I have imported all the SQL files in order and everything is fine there

Resources are there, here is the start list:
start essentialmode
set es_enableCustomData 1
start es_admin2
start async
start banking
start es_extended
start esx_addonaccount
start esx_addoninventory
start esx_datastore
start esx_vehicleshop
start esx_lscustom
start t0sic_inventoryui

Whenever I go to LSC and press E on any car nothing happens (well, error happens) and car is stuck. Can anyone help? Screenshot below