Fuel types, prices and wrong fuel

The fuels

  • Octane 95 — the everyday petrol
  • Octane 98 — premium petrol with a little extra engine power while the tank holds it (PowerBoost: +6% on a full tank, less the more it is mixed)
  • Diesel — trucks, vans and heavy vehicles
  • Electric — sold by the kWh, at EV chargers only

Petrol pumps sell 95, 98 and diesel (PumpFuelTypes). Add your own fuels under FuelTypes.

Which engine runs on what

  • Diesel — every vehicle in the Industrial, Utility, Service, Military and Commercial classes (DieselClasses), plus the trucks and off-roaders in DieselModels, minus the ones in PetrolModels
  • Electric — ElectricModels and every vehicle the game itself marks as electric
  • Petrol — everything else

Tank sizes come by vehicle class (TankByClass in litres, BatteryByClass in kWh), with per-model overrides in TankOverrides.

Daily prices

Each fuel's Price moves once a server day by a random amount within ±DailyVariation (12% for petrol by default). The same day always gives the same prices, so a restart mid-day changes nothing. The day rolls over at PriceChangeHour (6:00 server time).

Mixed tanks

A tank holds a blend: top up half a tank of 95 with 98 and it holds both. The HUD and the refuel card show the fuel the tank mostly holds.

Wrong fuel

Petrol in a diesel engine — or diesel in a petrol one — makes it run rough, worse the more of the tank is the wrong fuel:

  • From StutterFrom (8%) — the engine misfires and loses power, up to MaxPowerLoss (60%) at the worst
  • From StallFrom (45%) — the engine dies and will not run at all

Fixing it

  1. Siphon the tank with a jerry can and pour the can away at a pump. Repeat until the tank is empty.
  2. Fill it up with the right fuel.

An emptied tank forgets what it held, so the next fill decides. Scripts that refuel a car through SetFuel — a mechanic job, a repair kit — fill an empty tank with the car's own fuel, so they never add the wrong one.

Turn the whole thing off with WrongFuel.Enabled = false.

Station stock

Every gas station has an underground tank. Pumping drains it and tanker deliveries refill it — see The tanker job.

  • Each tank is a random size between MinCapacity and MaxCapacity (20,000 to 40,000 L) and starts StartFill full (55%)
  • Stock is saved and survives restarts
  • A pump belongs to the nearest station in Config.GasStations within 80 m. EV chargers and marina pumps have no stock
  • With BlockWhenEmpty = true a dry station stops selling and its screens show Out of fuel. Left false (the default), the stock only drives the tanker job

Turn it off entirely with StationStock.Enabled = false — stations then never run dry.

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