LSCustoms by Frazzle

LSCustoms by Frazzle

Features

  • Works on FX Server, probably works on legacy.
  • No SQL, or Couchdb
  • Stuff costs money (Uses Essentialmode by default, easily changed)
  • Previews on everything
  • Awesome GUI by @MrDaGree
  • Locking (Unlocks if an ass disconnects inside)

Video

Download

fcustoms.rar (14.3 KB)
fcustoms esx.rar (14.3 KB)
fcustoms supertable.rar (14.3 KB) – Untested
fcustoms vRP.zip (15.3 KB) – Created by @Z3R0M1ND

If your going to release an edit please ask for permission before you do :slight_smile:

22 Likes

Hey man,
Could you make a VRP version?
Thanks!

Sweet release Frazzle!

vrp version please…

3 Likes

Nice job Fraz gonna replace the old crappy version we use with yours as soon as I get back from Vacation

Nice work man :slight_smile:

would love to see the server.lua working for ESX which uses ES but has different money stuff in there.

Do it yourself, its not hard o.O

1 Like

for an newbie to lua it is :smiley:
im willing to learn stuff. And always comparing also stuff then. But im stuck with the money part. its not user its xPlayer for ESX but seems like im to stupid for it :smiley:

server.lua (2.4 KB)

Try this and report back :stuck_out_tongue:

1 Like

when buying:

LS Customs status: [{“locked”:false},{“locked”:false},{“locked”:true},{“locked”:false},{“locked”:false}]
Error running system event handling function for resource fcustoms: citizen:/scripting/lua/scheduler.lua:39: Failed to execute thread: server.lua:4: attempt to index a nil value (global ‘ESX’)

heres an example for frfuel to pay with ESX:

fuelCost = 55

RegisterServerEvent('frfuel:fuelAdded')-- fuel events
AddEventHandler('frfuel:fuelAdded', function(amount) --fuelAmount
	TriggerEvent('es:getPlayerFromId', source, function(xPlayer)
		if (xPlayer) then
			local cost = (fuelCost)
			xPlayer.removeMoney(cost)
		else
			TriggerEvent("es:desyncMsg")
		end
	end)
end)

I just looked at this https://github.com/FXServer-ESX/fxserver-esx_atm/blob/master/server/esx_atm_sv.lua
it was updated 8 hours ago and is for the ESX for FX

ah ok but getting the error above with ESX nil value

Does your functions.lua look like this?
https://github.com/FXServer-ESX/fxserver-es_extended/blob/master/resources/[essential]/es_extended/server/functions.lua

yes my version is up2date i compared it again i have the same functions file

do we maybe need also the ESX = nil maybe

put this in the __resource

server_script '@es_extended/locale.lua'

put this in the server.lua

ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
1 Like

yeah thats it. Now i also know what i forget. Thank you very much for the help :slight_smile:

1 Like

please do for the VRP, I’m trying, but I have the error on the error

@Kamaz @roboticgamer @CruelAlpha i uploaded a vRP version, no idea if it will work.

thanks, I’ll try and tell you if it works

So, main function for Vrp is Save tuning then u place car in garage, this mod dont do it. So, its not good for vrp.

2 Likes