[Release] [ESX & Non-ESX] LegacyFuel system


no doesn’t work…


it can you someone said they edited the oil volume and fuel volume in handling and got it to work but im trying to fuiger it out


Getting this error


Install it without making any changes


is there any way of making you pay for it when you have money in the bank, like pretend card rather then having cash on you,
having some issue with this,
he normal version works, but not the ESX_ version with the cash side


just change the line so it check for bank money insted of pocket money ?


any idea where i would find that in heremain.lua (20.2 KB)


So I press G to fuel the car with the jerry can but it does not fuel at all.


they stated jerry cans are not added yet i belive


How do i do that? because ive tried and cannot figure it out


I need help by this http://prntscr.com/l5phok this is not working


what sline is that mate,


Looks good, works fine.


What lines removes the speed? And which line adjust fuel hud position?


Anyone have a link to the fuel truck and a ymap that has gas pumps for boats and aircraft?


Where did you find it? Can you link it?


I noticed on your server you also have faster cars than normal on vanilla cars howd you do that was it a certain script ?


Hey Guys!

Can you Provide some help with another script I am having an issue with, this time its LegacyFuel, This time I can provide a little more detail. When a Player pulls up at a gas station (Fuel Pump) and leaves the vehicle the Box that says “Press G to fuel car” pops up over said pump the server then begins to spam the follow error code:

Error running system event handling function for resource LegacyFuel: citizen:/s
cripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:52: att
empt to index a nil value (global 'ESX')
stack traceback:
        server/main.lua:52: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scriptin
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:174: in function <citizen:/scriptin

Code from Server Sided script lines 50-56:

AddEventHandler('LegacyFuel:CheckCashOnHand', function()
	local xPlayer = ESX.GetPlayerFromId(_source)
	local cb 	  = xPlayer.getMoney()

	TriggerClientEvent('LegacyFuel:RecieveCashOnHand', source, cb)




Any help would be great

~ Mystical


Do you use esx? If you do, make sure you start esx_legacyfuel after es_extended. If you don’t use esx, don’t use esx_legacyfuel, but instead LegacyFuel.


@InZIdiUZ what line changes how close you have to be to activate the fuel pump? I wanted to make it just a little broader so you don’t have to get so close to the pumps.