Los Santos Customs | Benny's Motorworks V1.2


#1



Update V1.2 :

  • Added Benny’s and Beeker’s garage
  • Benny’s Motorworks upgrades are available at all garages
  • Improved and optimized menu
  • Now mods, which are’nt available for specific vehicle wont be shown
  • Driving in garage is now more like in original LSC
  • Controls are shown at bottom
  • Garage locking is now fixed(Well I tested with 2 players, i hope it works with any amount of players)
  • Now it is possible to configure a few things
  • Maybe something more that I have forgot :sweat_smile:

Available configuration in lsconfig.lua :
Prices, but I wont list them here as there are a lot of them

------Model Blacklist--------
--Does'nt allow specific vehicles to be upgraded
LSC_Config.ModelBlacklist = {
	"police",
}

--Sets if garage will be locked if someone is inside it already
LSC_Config.lock = false

--Enable/disable old entering way
LSC_Config.oldenter = false

--Menu settings
LSC_Config.menu = {

-------Controls--------
	controls = {
		menu_up = 27,
		menu_down = 173,
		menu_left = 174,
		menu_right = 175,
		menu_select = 201,
		menu_back = 177
	},

-------Menu position-----
	--Possible positions:
	--Left
	--Right
	--Custom position, example: position = {x = 0.2, y = 0.2}
	position = "left",

-------Menu theme--------
	--Possible themes: light, darkred, bluish, greenish
	--Custom example:
	--[[theme = {
		text_color = { r = 255,g = 255, b = 255, a = 255},
		bg_color = { r = 0,g = 0, b = 0, a = 155},
		--Colors when button is selected
		stext_color = { r = 0,g = 0, b = 0, a = 255},
		sbg_color = { r = 255,g = 255, b = 0, a = 200},
	},]]
	theme = "light",
	
--------Max buttons------
	--Default: 10
	maxbuttons = 10,

-------Size---------
	--[[
	Default:
	width = 0.24
	height = 0.36
	]]
	width = 0.24,
	height = 0.36

}

DOWNLOAD(Both versions are included there)


[Release] Los Santos Customs by Arturs
#2

How do you get the menu to open? I see the blips but nothing customs wise.


#3

same problem for me too
and is there a way to save car changes to garage i mean when people do /pv car changes are not saved


#4

@FAXES @Yunus_Emre_AKTAS Drive with vehicle and stop right after u drive in garage, you can see how i enter garage in video :wink:


#5

but its not work everytime if you do it like a press E/ENTER to enter garage it will be better


#6

You have to be facing the garage with vehicle , if you will drive inside backwards, then it wont work


#7

is there a way to do it with ENTER or E or other key


#8

I will soon add config option to enable old entering way


#9

@FAXES @Yunus_Emre_AKTAS Redownload and set LSC_Config.oldenter = false to true in lsconfig.lua, it will enable old entering way :slight_smile:


#10

from vrp wait release?


#11

thank you. last one is when people buy parts. its free to buy parts. money is dont change when you buy sometihng im using esx


#12

Very nice release. Entering in workshop like gtao is awesome.


#13

Will there be a vrp release? If not is it posssible to make everything free if vrp conversion is not possible?


#14

Cant tell for now… But yeah it is possible to set everything for free just change all prices in lsconfig.lua to 0


#15

i mean right now erverythink has a price but when you buy it your money is still the same. i mean price have a bug


#16

I know… It’s not a bug… there is no money system implemented. Take a look at lscustoms_server.lua and u will understand


#17

so how to add ? im using essential


#18

I think the link you provided is broken?


#19

Simply replace the ServerEvent(“LSC:buttonSelected”)
to that

RegisterServerEvent("LSC:buttonSelected")
AddEventHandler("LSC:buttonSelected", function(name, button)
    TriggerEvent('es:getPlayerFromId', source, function(user)
        local player = user.getIdentifier()
        if button.price then
            if (tonumber(user.getMoney()) <= tonumber(button.price)) then
                TriggerClientEvent("LSC:buttonSelected", source,name, button, true)
                user.removeMoney(tonumber(button.price))
            else
                TriggerClientEvent("LSC:buttonSelected", source,name, button, false)
            end
        end
    end)
end)

#20

I feal like you copied the ESX Version :smirk: