Cuxial Fuel gives every vehicle a fuel level, a tank size and a fuel type, and turns the pumps of the map into working pumps. The purchase is made on a screen drawn on the pump itself, and the fuel is served with a nozzle the player carries to the vehicle.
What it does
- Fuel consumption by engine RPM, vehicle class and fuel type, with a tank size per class or per model.
- Four fuels: regular, plus, premium and diesel. Changing fuel empties the tank first, and the wrong fuel breaks the engine.
- Electric vehicles with their own chargers, in fast and normal mode.
- Interactive screen on the pump: prices while idle, and the whole purchase (fuel, litres, payment) with the game cursor when a player uses it. Models without a screen open a regular panel instead.
- Nozzle with a hose: pay, take the nozzle, plug it into the tank, stop whenever you want and return it to the pump. Unused litres are refunded.
- Spills: start the engine with the nozzle plugged in and drive off, and the nozzle pops out.
- Jerry cans sold at the pump and used from the inventory.
- Price totems at the stations, with prices, stock and promotions.
- Job discounts for players on duty.
- Consumption chart for the driver, with fuel, speed and litres per second.
- Native sounds for the nozzle, the flow and the till, also heard by nearby players.
- Extra pumps and chargers placed by coordinates (rooftops, helipads, docks, airfields).
- Live settings from the Cuxial Gas Stations
/gasadminpanel: prices, consumption, jerry can, pump screens and more, without restarting. See Admin panel. - Fuel exports on client and server, plus the vehicle state bag
fuel.
How a refuel goes
- The player walks up to a pump and picks Refuel (or Charge on a charger).
- The camera frames the pump screen. The player chooses the fuel and the litres and pays with one of the allowed accounts.
- The nozzle goes to the player's hand. At the vehicle's fuel cap, Refuel starts the flow and Stop refueling pauses it.
- Back at the pump, Return the nozzle closes the purchase and refunds what was paid and not served.
Walking further than the hose allows, or sitting in a vehicle with the nozzle in hand, also closes the purchase with its refund.
Requirements
| Resource | Required | Used for |
|---|---|---|
| OneSync | Yes | Vehicle state and server-side checks |
ox_lib | Yes | Callbacks, notifications, locales |
oxmysql | Yes | Fuel type of each vehicle |
cuxial_bridge | Yes | Connects to your framework (QBox, QBCore or ESX): money, jobs, inventory |
sleepless_interact | Yes | Interactions on pumps, chargers and the fuel cap |
ox_inventory | Yes | Jerry can |
cuxial_gas_assets | Yes | Models, screens, totems and sounds. Delivered with the script |
cuxial_gasstations | No | Player-owned stations: own prices, stock, till, promotions and spill puddles |
Cuxial Fuel must be the only fuel resource on the server. Stop any other fuel script before starting it.
Pages
InstallationDependencies, other fuel scripts, convars and start order.ConfigurationEvery block of
shared/config.lua and the lists in data/.Commands & permissionsPlayer commands, keys and the screen positioner.Exports & eventsRead and set fuel from your own resources.TroubleshootingCommon problems and how to fix them.