Fuel Script
The vehicle control UI displays the amount of fuel a vehicle has. By default, the script will be standalone, using the FiveM native to retrieve the fuel level for the vehicle.
No Fuel Srcipt
If your server does not use any fuel script, simply leave Config.FuelScript as 'none' or 'standalone'.
Custom Fuel Script
We have configured this script to be compatible with cdn-fuel and legacy-fuel, straight out of the box.
If you are using cdn-fuel, change Config.FuelScript to 'cdn-fuel'
If you are legacy-fuel, change Config.FuelScript to 'legacy-fuel'
If you are using any other fuel script, you must set Config.FuelScript as 'other' and configure the GetFuelLevel(veh)
function in[shared/functions.lua]
, and place the code that returns the vehicles fuel amount in the last elseif statement.
Last updated