Fuel types, prices and payment

Fuel types (Config.FuelTypes)

Each entry is one fuel the pumps sell:

  • Id — the fuel's id: "95", "98", "diesel", "electric". Used everywhere else in the config and by the exports
  • Label — the full name on the pump screen
  • Short — the short badge (95, D, EV)
  • Price — per litre (per kWh for electric), before the daily change
  • DailyVariation — how far the price may move each day, either way. 0.12 = up to ±12%
  • Color — the fuel's colour on the screens and the HUD
  • Kind — "petrol", "diesel" or "electric". Decides which engines it suits
  • PowerBoost — optional extra engine power on a full tank of it (0.06 = +6%), scaled by its share of the tank

Then:

  • PriceChangeHour — the server hour the daily prices roll over. The same day always gives the same prices, even across restarts
  • PumpFuelTypes — the fuel ids a petrol pump sells. Chargers only ever sell "electric"

Payment (Config.Payment, ESX / QBCore)

  • Methods — the payment options on the pump screen. Each has an Id, a Label, an Icon ("card" or "cash") and the framework Account it is paid from ("bank", "cash", or any account your framework has)
  • RefundUnused — refund prepaid fuel that was not pumped when the nozzle goes back. Spilled fuel is not refunded
  • MinAmount / MaxAmount — what the keypad accepts, in the display unit
  • StandalonePrices — standalone only: the pumps, chargers and jerry cans still show the daily prices and the payment step, but nothing is charged and no paid / refunded message shows. For freeroam servers and showcases

The balance is checked and charged on the server, and the nozzle is only handed over once the money is taken.

Consumption (LegacyFuel compatible)

  • Classes — a fuel use multiplier per vehicle class. Under 1.0 uses less, 0.0 never uses fuel (cycles and trains by default)
  • FuelUsage — engine RPM (left) to fuel used (right): the percent of the tank burned every second, divided by 10. [1.0] = 1.4 burns 0.14% of the tank a second at full revs
  • ElectricUsageMultiplier — electric vehicles drain by the same table times this
  • Blacklist — models (names or hashes) that never use fuel, show no fuel HUD and cannot be refuelled

Fuel only burns while the engine runs. The tables work exactly like LegacyFuel's, so a LegacyFuel config carries straight over.

Get the scriptGet Refueling NozzlesFiveM Fuel Script →
Can't find what you need? Ask on Discord — response in under 5 hours.