All credits go to the original post author:
Original Post: [Release] [ESX & Non-ESX] LegacyFuel system
Git
Project Repo: Advanced-Fuel
Installation
1. Download the latest version in the "code" tab on GitHub.
2. Drag & drop the folder into your `resources` server folder.
3. Configure the config file to your liking.
4. Add start Advanced-Fuel to your server config.
Exports
There are currently two (client-sided) exports available, which should help you control the fuel level for vehicles whenever needed.
SetFuel(vehicle --[[ Vehicle ]], value --[[ Number: (0-100) ]])
GetFuel(vehicle --[[ Vehicle ]]) -- Returns the vehicle's fuel level.