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


#148

no doesn’t work…


#151

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


#152

Getting this error


#153

Install it without making any changes


#154

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


#155

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


#156

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


#157

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


#158

they stated jerry cans are not added yet i belive


#159

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


#160

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


#161

what sline is that mate,


#162

Looks good, works fine.


#163

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


#164

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


#165

Where did you find it? Can you link it?


#166

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


#167

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
g/lua/scheduler.lua:174>
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
g/lua/scheduler.lua:138>

Code from Server Sided script lines 50-56:


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

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

Printscreens:

Console:
3c8df3a7ea87a4294795f1d62ca6d453

script:
ca49fe6393a7157e67257ed717c1070c

Any help would be great

Thanks
~ Mystical


#168

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.


#169

@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.