A simple fuel resource meant to replace LegacyFuel or serve as a showcase for using petrol cans as an item.
Installation
Install all resource dependencies.
Download a release (opens in a new tab) or clone the source code.
git clone https://github.com/overextended/ox_fuel.git
Install optional dependencies.
These resources aren't required but provide additional functionality.
Get vehicle fuel amount
local fuel = Entity(vehicleId).state.fuel
Set vehicle fuel amount
Entity(vehicleId).state.fuel = fuelAmount