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


#85

@UltraTM hmmmmm then my guess is something in the SexySpeedometer needs to be changed to accommodate the extra fuel. Never did take a look at that script however was interested for a little bit


#86

At the moment also with the esx garage we run out of fuel.

Is there a way to implement a gas can ?


#87

i would assume you add the gas can into your shop then user buys it then he/she can fill gas can.


#88

Found something with ESX.

When you park your car in the esx garage and want to take it out again the fuel is empty everytime.
Do the cars spawn with an empty fueltank maybe?


#89

When you first spawn your car in the garage it has fuel, if you put it back and retake it out, then it’s at 0%
something should be made that if the car is not found, then it has 50% gaz


#90

This 0% gas problem is dumb…
Even if i put this :slight_smile:

		TriggerServerEvent('LegacyFuel:CheckServerFuelTable', plate)
		SetVehicleFuelLevel(callback_vehicle, 50)
		TriggerServerEvent('LegacyFuel:UpdateServerFuelTable', plate, round(GetVehicleFuelLevel(callback_vehicle), 1))```

inside of my eden_garage SpawnVehicle function it change nothing, the stupid vehicle spawn with 0% …
anyone found a fix ?


#91

Have the same problem. Also wanted to have a fix for that :smiley:

Since we have no gas can. Need to implement one now i think :smiley:


#92

Nice job, but the cars don’t save the fuel. If they got out of the garage they have now fuel. Maybe include a buy petrolcan funktion on gas station, please.

Is there an option to set the “start gas / fuel”?


#93

Update

Sorry for taking so long, been really busy lately! I’ve updated the script so the 0% @ garages doesn’t happen anymore (it shouldn’t, atleast). Will add the requested features when I get more time.


#94

working great with the garages now. Thanks. Cant fill car with jerry cans yet.


#95

You can if you have one, but haven’t added any places to buy/get them


#98

Hey dude, your job is awesome, really.

However, i have a strange bug. When i take out my vehicle, i’ve a chance to have 0% fuel in.

I dont know how? I tried to resolve it but i failed xD


#99

I appreaciate that you think so! :smile:

However, the bug you’re talking about should’ve been fixed around a week ago. Try to download the latest version from the github page and see if the issue still occurs after you’ve updated the script.


#100

So, do you carry around a 15 gallon gas can with you irl? A real Jerry Can is typically about 5 gallons. So filling up your car with one just isn’t legit. @InZIdiUZ, don’t change that.

By the way, GREAT script. Keep it up. Only do what you want to do to it, don’t try to please everyone. You’ll go nutz.


#101

Refueling with a jerry can has always been a thing, I just haven’t updated the github with the version that includes the abiliy to buy one.


#102

Hey!

Nice update! 0% fuel has been corrected!

Just a little suggestion! I added in vehicle blacklist the “forklift” and the “bus”.

The “forklift” has always the fuel! :stuck_out_tongue:
It dont work! :stuck_out_tongue:


#103

The HUD is awesome! Great work!


#104

Yeah im having issues adding models to the blacklisting fuel as well…some take some dont.


#105

Hi there guys,

I noticed that this resource adds the fuel system to both boats and aircraft but I’m not sure how to handle fueling of these since the script checks for “nearPump” and I can’t seem to find any pumps to park the craft near for fueling.

Anyone else run into this and solve it?


#106

The pumps at the heli area by the boat docks work just fine if you can get close enough…I ended up adding some easier accessible pumps for boats and helis around the map.