Pumps, chargers and stations

Refuelling (Config.Refuel)

  • FlowRate — litres a second a pump delivers
  • ChargeRate — kWh a second a charger delivers
  • BoatFlowRate — litres a second at a marina pump
  • SpillParticle — the overflow effect when the tank is full but prepaid fuel still flows (Dict, Name, Scale)
  • OverflowOut — how far out from the body the overflow gushes
  • CanSprayNozzle — let players spray fuel with the nozzle
  • SprayKey — the spray control, 24 (left mouse button)
  • HudViewDot — how directly the player must look at a vehicle for its refuel card (1.0 = dead centre)
  • NozzleModel — the fuel nozzle prop, prop_cs_fuel_nozle
  • NozzleHandBone / NozzleHandOffset / NozzleHandRotation — the hand bone both props are held in, and how the nozzle sits in it
  • PlugModel — the EV plug prop, toxic_ev_plug
  • PlugHandOffset / PlugHandRotation — how the EV plug sits in the hand
  • CapRadius — how close to a filler the player must be
  • VehicleRadius — how close a vehicle must be before its fillers are looked at
  • UnarmPedWhenHoldingNozzle — holster weapons and block attacking while the nozzle is in hand

Pump models (Config.PumpModels)

Every usable pump model, keyed by model name. All the stock pumps and the EV charger ship set up. Each takes:

  • ScreenStyle — "modern" (digital display, the default) or "retro" (analog gauge)
  • HoseOutlets — where the hoses leave the pump, local to it. A pump with a hose on each side lists both, and the player's side is used
  • PromptHeight / PromptOut — this model's own prompt position
  • Screens — the touch screen faces: Offset = the screen's centre (local), Heading = the direction it faces, Outlet = which HoseOutlets entry that face uses on a two-hose pump, Width / Height in metres
  • Electric — this model is an EV charger
  • DockProp — EV chargers: the prop of the cable hanging in the holster, hidden while the cable is out

To use a custom pump prop, add its model with at least HoseOutlets and Screens. Pumps are found by model, so every copy of it in the world works.

Pump screens (Config.Screen)

  • Enabled — the live screens on the pumps. false = no screens, and the terminal opens full screen
  • DrawDistance — screens further than this from the camera are not drawn
  • MaxActive — how many screens render at once, nearest first. Each one is a small in-game browser, so keep this low
  • TerminalMode — "dui": the camera moves to the pump screen and the player clicks it with the mouse. "nui": a full-screen touch screen instead

EV chargers (Config.ChargerLocations)

Extra chargers the script spawns, on top of the 86 in the models resource's map file. Each takes a Position, a Rotation and Spawn = true.

Marina pumps (Config.BoatStations)

  • Enabled — marina pumps on or off
  • Model — the pump prop spawned on each dock. It must be listed in PumpModels
  • Radius — boats within this distance of the pump can be filled
  • Locations — each with a Position, Heading and Spawn. Spawn = false uses a pump already standing in your map within 3 m of Position

Gas stations (Config.GasStations)

Used for the blips, station stock and the tanker job. Each entry:

  • Position — the station. Pumps within 80 m belong to it
  • FillPoint — the underground tank filler the tanker hose connects to. The fill prop stands here
  • FillProp — "toxic_fill_stand" or "toxic_fill_well" (left out = they alternate)
  • FillHeading — the prop's heading (left out = it faces away from the forecourt)
  • FillRotation — an optional full rotation, for a prop on a slope
  • FillSpawn — optional: true spawns a fill prop at this station, false never does. Overrides TankerJob.SpawnFillProps

Station stock (Config.StationStock)

  • Enabled — pumping drains a station and tanker deliveries refill it. false = stations never run dry
  • MinCapacity / MaxCapacity — each station's tank is a random size between these, in litres. A saved tank outside a new range is resized, with the same share full
  • StartFill — how full a tank starts the first time (0.55 = 55%)
  • BlockWhenEmpty — a dry station stops selling. false = the stock only drives the tanker job
Get the scriptGet Refueling NozzlesFiveM Fuel Script →
Can't find what you need? Ask on Discord — response in under 5 hours.