I keep getting this issue where if there are three people in a vehicle, it wont refuel the vehicle, all parties must step out before it starts to fuel properly.
Hello, I have a problem with Legacy Fuel since today I can not refuel my cars, have done everything reinstalled and deleted, do not know why it does not work at once, config everything looked after
i love the script but for the life of me i cannot slow the refueling rate. i can make It instant or fast⦠i cant slow it down. anyhelp is much appreciated. ive been working on this 3 hours now
is it possible to add a vehicle as refuel station or tanker car ? or rather does someone know how to do it. i tryed adding the hash frome a car to the pump models but clearly dident work for me.
am i on the right track. any ideas?
Hi everyone, I turn āConfig.UseESXā on ātrueā but the player donāt paid 
same issue
Hi Thank you for the script.
i do have some qustions:
- where do i disable the miles and Km/h i just need the fuel to be displayed
- how can i let the script save the fuel status on the cars so it dont have random numbers on it by parking it in and out again.
Thx
you added this :S but in the current version i dont seem to be able to find it anymore ? inteded ? or am i really missing somehing here
anyone know if theres a way if this can be used for fueling helicopters / boats etc
I use this script but i canāt use any of the planes or helicopters. The engine just splutters. When i disable this script in the config it works. Do i need to blacklist the aircraft and helicopter catagory? If yeah how do i do it?
Im having this strange bug, i donnow how to solve this, i didnt touch anything I reinstalled and keeps happening any help pls?
same here, found a solution?
Error running system event handling function for resource LegacyFuel: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: @LegacyFuel/source/fuel_server.lua:8: attempt to index a nil value (upvalue āESXā)
getting this in the console, onesync latest server
While replying to peopleās problems, I noticed how long this post would be. So I decided to do it like this hehe, itās just too long and would take too much place. (Replying to max 14d old posts)
:P
Been a few updates in the script, maybe those things messed it up.
Hereās a download for an older version (with some of my edits, check the code below for edits):
LegacyFuel.zip (17.8 KB)
Never had this issue, have you tried playing around with this in config.lua?
Code
-- Class multipliers. If you want SUVs to use less fuel, you can change it to anything under 1.0, and vise versa.
Config.Classes = {
[0] = 1.0, -- Compacts
[1] = 1.0, -- Sedans
[2] = 1.0, -- SUVs
[3] = 1.0, -- Coupes
[4] = 1.4, -- Muscle
[5] = 1.0, -- Sports Classics
[6] = 1.3, -- Sports
[7] = 1.0, -- Super
[8] = 0.8, -- Motorcycles
[9] = 1.0, -- Off-road
[10] = 0.5, -- Industrial
[11] = 0.5, -- Utility
[12] = 1.0, -- Vans
[13] = 0.0, -- Cycles
[14] = 0.1, -- Boats
[15] = 0.4, -- Helicopters
[16] = 0.7, -- Planes
[17] = 0.5, -- Service
[18] = 0.5, -- Emergency
[19] = 0.5, -- Military
[20] = 0.5, -- Commercial
[21] = 1.0, -- Trains
}
-- The left part is at percentage RPM, and the right is how much fuel (divided by 10) you want to remove from the tank every second
Config.FuelUsage = {
[1.0] = 1.4,
[0.9] = 1.2,
[0.8] = 1.0,
[0.7] = 0.9,
[0.6] = 0.8,
[0.5] = 0.7,
[0.4] = 0.5,
[0.3] = 0.4,
[0.2] = 0.2,
[0.1] = 0.1,
[0.0] = 0.0,
}
Very easy fix, check the code above. By default all the vehicle classes are set to 1.0 but I edited those for my liking. I hope this can help you ![]()
I am not sure if you have fixed this yet, but this script is an āDrag & Dropā, all you have to do to make it work is install it, drag it into your resources folder, and put start LegacyFuel into your server.cfg then restart your server ![]()
If your like me and like Red gas station blips, simply update line 353 in your source\fuel_client.lua file.
SetBlipColour(blip, 1)
I downloaded and set it up, was working fine but the fuel was going down so fast so i changed the fuel usage and then it broke again ![]()
Sorry to hear that mate, can you send the code here so I can check it out and let you know if youāve done anything wrong?
Yup, this is my code, I donnow why thisi s happening, thanks for the help.
LegacyFuel.rar (17.2 KB)
I also have this version but this isnāt workign too.
esx_legacyfuel.rar (5.6 KB)
you ever figure it out?
how can i change price for fuel? Thanks in advance