âŊVehicle fuel
Last updated
Last updated
File Path: modules/systems/c.vehicleFuel.lua
LegacyFuel
ps-fuel
ox_fuel
cd_fuel
custom
By default, the script will try to automatically detect the correct resource.
Shared.VehicleFuel = "AUTO DETECT"
If auto detect failed in config.lua, set Shared.VehicleFuel to use the appropriate keys resource or set it to custom and configurate it yourself.
Go to modules/systems/c.vehicleFuel.lua and customize your fuel logic
Core.SetVehicleFuel = function(vehicle, amount)
SetVehicleFuelLevel(vehicle, formatFuel(amount)) -- custom or default
end