i would assume you add the gas can into your shop then user buys it then he/she can fill gas can.
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?
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
This 0% gas problem is dumbâŚ
Even if i put this
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 ?
Have the same problem. Also wanted to have a fix for that
Since we have no gas can. Need to implement one now i think
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â?
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.
working great with the garages now. Thanks. Cant fill car with jerry cans yet.
You can if you have one, but havenât added any places to buy/get them
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
I appreaciate that you think so!
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.
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.
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.
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!
It dont work!
The HUD is awesome! Great work!
Yeah im having issues adding models to the blacklisting fuel as wellâŚsome take some dont.
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?
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.
Can I ask how you add pumps? Iâd love to do that!
We add them when building custom ymaps.