Vehicles, wrong fuel and jerry cans

Tanks and fuel kinds (Config.Vehicles)

  • TankByClass — tank size in litres per vehicle class
  • BatteryByClass — battery size in kWh per class, for electric vehicles
  • TankOverrides — per model, in litres or kWh, e.g. ["phantom"] = 600
  • DieselClasses — classes that run on diesel (10 Industrial, 11 Utility, 17 Service, 19 Military, 20 Commercial)
  • DieselModels — diesel models outside those classes
  • PetrolModels — petrol models inside a diesel class
  • ElectricModels — fully electric models, on top of the ones the game itself marks as electric

Lining the nozzle up with the filler

The filler is found from each vehicle's own bones, on both sides. These nudge it where a model's bones are off:

  • CapOffsets — exact filler positions per model { left, right }, local to the vehicle. Leave a side out for a one-sided filler. Replaces everything below for that model
  • CapAdjust — per vehicle class, with Default for every class not listed
  • CapAdjustTankBones — extra for trucks whose filler comes from the side-tank bones (petroltank_l / petroltank_r)
  • CapAdjustPlug — extra for the EV plug, on top of the class and model values
  • CapAdjustModels — per model, on top of its class

Each adjustment takes any of:

  • Depth — pushes the nozzle in (+) or out (−), in metres
  • Up — raises or lowers the filler point
  • Forward — moves it toward the front (+) or the back (−)
  • Pitch — tilts it, in degrees (+ = handle up)

Class numbers: 0 Compacts, 1 Sedans, 2 SUVs, 3 Coupes, 4 Muscle, 5 Sports Classics, 6 Sports, 7 Super, 8 Motorcycles, 9 Off-road, 10 Industrial, 11 Utility, 12 Vans, 13 Cycles, 14 Boats, 15 Helicopters, 16 Planes, 17 Service, 18 Emergency, 19 Military, 20 Commercial, 21 Trains.

Wrong fuel (Config.WrongFuel)

  • Enabled — turn the wrong fuel effects off entirely
  • StutterFrom — the share of wrong fuel where the stutter starts (0.08 = 8%)
  • StallFrom — the share where the engine dies and will not run until the tank is siphoned
  • MisfireIntervalMin / MisfireIntervalMax — milliseconds between misfires. The worse the mix, the closer to the minimum
  • MaxPowerLoss — the power lost at the worst mix before it stalls (0.6 = 60%)

Jerry cans (Config.JerryCan)

  • Weapon — the jerry can weapon and item, WEAPON_PETROLCAN
  • Capacity — litres a full can holds
  • Price — a new, empty can bought at a pump
  • FillFuel — what a can holds when nothing says otherwise, for example an inventory item that already has fuel in it
  • PaymentAccounts — the accounts a new can and a hose break fee are paid from, tried in order
  • PourRate — litres a second poured into a vehicle
  • FillRate — litres a second a pump fills a can at
  • PourAnimation — the pour animation (Dict / Name); the game's own can pour by default
  • StopIfVehicleMoves — metres a vehicle may move before pouring or siphoning stops
  • StopIfBoatMoves — the same for boats, which bob at the jetty
  • EmptyAtPump — allow pouring a can away at any pump
  • ContaminatedFrom — the share of the other fuel (petrol vs diesel) above which a can counts as contaminated

Siphoning (JerryCan.Siphon):

  • Enabled — allow siphoning. Locked vehicles can never be siphoned
  • Rate — litres a second
  • Animation — the siphon animation (Dict / Name)
Get the scriptGet Refueling NozzlesFiveM Fuel Script →
Can't find what you need? Ask on Discord — response in under 5 hours.