Skip to content

Cuxial Fuel

Fuel system for FiveM with pumps, fuel types, electric chargers, jerry cans and an interactive screen on the pump itself.

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 /gasadmin panel: 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 ​

  1. The player walks up to a pump and picks Refuel (or Charge on a charger).
  2. The camera frames the pump screen. The player chooses the fuel and the litres and pays with one of the allowed accounts.
  3. The nozzle goes to the player's hand. At the vehicle's fuel cap, Refuel starts the flow and Stop refueling pauses it.
  4. 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 ​

ResourceRequiredUsed for
OneSyncYesVehicle state and server-side checks
ox_libYesCallbacks, notifications, locales
oxmysqlYesFuel type of each vehicle
cuxial_bridgeYesConnects to your framework (QBox, QBCore or ESX): money, jobs, inventory
sleepless_interactYesInteractions on pumps, chargers and the fuel cap
ox_inventoryYesJerry can
cuxial_gas_assetsYesModels, screens, totems and sounds. Delivered with the script
cuxial_gasstationsNoPlayer-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 ​

© Cuxial