Refuelling at the pump ​
Driving ​
Every vehicle has a profile from its GTA class (or its model): tank size, a consumption factor and a fuel type. See Configuration → Fuel types and vehicles.
- Consumption runs on the driver's client every second: the base burn × the profile's factor × the load. The load is an idle share (EVs burn nothing standing still), RPM, throttle and air drag at speed. A wrecked engine burns up to 50 % more, a fully contaminated tank up to 20 % more. Bicycles and trains burn nothing.
- The server keeps the level. The driver reports it every 10 s; the server only accepts fuel going down, by at
most the class's maximum burn for the time that passed. The level lives in the
fuelstate bag (0..100, ox_fuel compatible), is saved per plate and written back to the framework's garage column (owned_vehicles/player_vehicles), so np_phone's garage shows it. - First sight: a vehicle np_fuel has no level for starts full when someone owns it, otherwise at a random level between 25 and 85 %.
- Low fuel: once the level falls below 20 %, a toast shows the range left and the nearest station that has your
fuel (or the cheapest within 3 km,
Config.Vehicles.lowFuel.suggest). G sets the route for 20 s. - At 0 % the engine stalls: engine off, undriveable, hazards on, until fuel comes in.
- Wrong or dirty fuel in the tank (above 5 %): power loss, misfires and engine damage over distance; below an
engine health of 120 the engine dies. A mechanic drains the tank with the server export
SetFuel(veh, 0, cleanType).
np_hud draws the fuel tile (and a battery tile for EVs). Without np_hud, np_fuel shows its own gauge at the bottom right, in the fuel's tint, with a ring when low:
| Gauge | Low | Diesel | Electric |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
The pump screen ​
Press E at a pump (or pick Use pump on the pump model through np_menu, ox_target or qb-target). Airfields and marinas without pump props have the prompt at the station centre.

- Header: the brand logo, the station name, district and pump number.
- Choose fuel: one tile per fuel the station sells, with the price per litre and a stock bar. A tile is locked
when the fuel is empty ("Empty · on its way" when a delivery is coming), when it is the wrong fuel and
Config.Pump.wrongFuel = 'block', or when it is kerosene for a car. At a road station, a free slot shows the nearest Coil site for EVs. - Amount: presets +25 % and +50 % of the tank, Full, or a dollar amount. The tank slider shows what is in the tank, what you add and the reserve mark, with the time it takes.
- Total and method: bank or cash. With np_payments the method row says "Confirm at the checkout", and the checkout sheet opens after Pay.
- Side cards: your vehicle (fuel, tank content, consumption, range after the fill-up) and the station (owner, membership discount, the next delivery for an empty fuel, free pumps, the price against the city average).
| Key | |
|---|---|
| ← → | Fuel |
| Q E | Amount preset |
| ↑ ↓ | Litres (1 l steps), or the dollar amount in $5 steps in the $ preset |
| 0–9, BACKSPACE | Type the dollar amount in the $ preset |
| ENTER | Pay |
| ESC | Close |
Prepay, refund the rest ​
Every fill is prepaid (unless pay inside is on at a station with a shop), so nobody can drive off without paying:
- The server quotes again: litres up to the room in your tank and the station's stock, at the station's price (minus a membership discount).
- It reserves those litres in the station's tank, then takes the money (np_payments sheet, or the framework account).
- Fuel flows at the server's rate (0.65 l/s at road pumps, 4 l/s at airfields, 2 l/s at marinas). The live meter ticks along.
- When the fill ends, or you stop it, the server counts what flowed by its own clock, puts the unused litres back into the station's tank and refunds what did not fit to the account you paid from.
Players pay and are refunded whole dollars (Config.Fuel.chargeRounding); the ledger keeps the exact cents. A
player-owned station's company account gets what the player actually paid. A refund that cannot be paid (the player
left) waits for their next login.
The live meter ​
| Pumping | Done |
|---|---|
![]() |
![]() |
The meter counts litres and price at the server's rate. E stops it (menu mode), walking away from the vehicle stops it too. The settled result replaces the numbers, and a toast shows what was paid and refunded.
If the payment fails (declined, cancelled, not enough money), the pump screen opens again with the error and your selection:

Pay inside ​
Off by default. Turn it on in np_admin (Resource settings → Fuel → Pump → Pay inside at the shop) or with
Config.Pump.payInside.enabled = true. It needs np_shops: at a station with a
linked shop the pump runs first and the driver pays at the shop counter.
| The pump | Done, pay inside |
|---|---|
![]() |
![]() |
- The pump screen shows Pay inside at and the shop name instead of the payment method, and Pay becomes Start pump. The server quotes, reserves the litres and checks everything as for a prepay, but takes no money.
- The fuel flows and settles by the server's clock as usual. The meter and a toast say what to pay and where ("Pay $33 inside at LTD Gasoline").
- At the shop counter the bill is a card at the top of the cart with a green Pay button (see
np_shops → Fuel bills at the counter). It opens the same checkout as a prepay
(np_payments sheet with the station as merchant, or the framework account). Then the station's company account is
credited and the
fuel_receiptis handed over.
One open bill at a time. A player with an unpaid bill can't start a new fill at any pump until it is paid ("Pay your open fuel bill inside first").
Drive-offs. The bill is dropped as a drive-off when the vehicle (or the player, without one) is more than
leaveDistance (30 m) beyond the station's radius, when it is not paid within minutes (15), or when the player
leaves the server. The player gets a toast ("Left without paying"), the owner and the staff online get an alert, and
the plate goes into the station's drive-off list. There is no police call and no debt; what to do about it is up to
your roleplay. After a server restart, the bills of players who are offline only expire by time.
Stations without a linked shop, EV chargers and jerry cans keep prepay. The refueled event fires when the fuel is
in, with method = 'inside' (nothing is paid yet, see Events).
Wrong fuel ​
Config.Pump.wrongFuel decides what happens when the chosen fuel does not fit the vehicle (a petrol car also takes
premium, Config.Fuel.compatible):
| Value | |
|---|---|
'block' |
The fuel is locked at the pump |
'warn' (default) |
A dialog shows the consequence ("The engine takes damage and stalls after a few kilometres. Towing and draining the tank cost ≈ $450") with Refuel anyway |
'allow' |
No question |

A wrong fill contaminates the tank (see Driving) until a mechanic drains it. EVs never take liquid fuel, and kerosene is for aircraft only.
Nozzle mode ​
With Config.Pump.mode = 'nozzle' refuelling is physical:
- E at the pump: take the nozzle (an np_prophandler prop in the hand that other players see, a hose to the pump). E again hangs it up.
- Walk to the fuel cap and press E: the pump screen opens; choose and pay.
- Hold E to pump, release to stop. While pumping, the nozzle sits in the cap and stays there until you take it back.
Drive off (or walk further than the 6 m hose) and the hose rips: the running fill settles, the pump is out of order for 15 minutes, a fuel spill lies at the pump for 2 minutes, and the owner and staff of the station get a notification (an offline owner gets a mail). A shot, a fire or an explosion within 6 m of the spill lights it.
Repairing the pump (np_minigames) ​
Without np_minigames an out-of-order pump comes back after Config.Pump.nozzle.brokenMinutes. With
it, the station's owner and staff (and np_admin's np_fuel.stations staff) can fit a new hose early: E at the
pump plays a torque check that np_minigames judges on the server (started from
np_fuel's own RPC handler, so a success never comes from the client). A failed repair can add failMinutes to the
downtime; giving up with Esc costs nothing.
-- shared/config/minigames.lua
Config.Minigames = {
enabled = true,
maxMove = 2.5, -- metres from where the game started before it fails with 'moved'
repair = {
enabled = true,
game = 'torque', difficulty = 'medium', opts = {},
item = false, -- or an np_minigames item rule, e.g. { name = 'toolkit', remove = 'fail', chance = 0.25 }
who = 'station', -- 'station' (owner and staff) | 'anyone'
jobs = {}, -- framework jobs that may always repair, e.g. { 'mechanic' }
failMinutes = 0, -- extra downtime after a failed repair
},
}
Every key is also on np_admin's settings page (Minigames).
Receipts ​
With an inventory and Config.Pump.receipt = true, every sale gives a fuel_receipt item: station, brand, fuel,
litres, price per unit, total, plate, payment method and reference, time, pump number and how it was pumped (pump,
nozzle, ev). Without an inventory, the receipt lives in the ledger, and the Fuel app lists it under
spending either way. With np_payments, its own receipt is issued too.
Station blips ​
One blip per station in the brand colour, named <brand> · <cheapest price>/<unit> (e.g. "LTD Gasoline · $1.36/l"), grey when nothing is in stock.
EV sites, airfields and marinas have their own sprites. Config.Pump.blips.nearbyOnly keeps only the stations within
1,500 m. Prices on the blips update live when an owner changes them.
Airfields and marinas ​
| Kind | Serves | Fuel | Flow |
|---|---|---|---|
Airfield (air) |
Helicopters and planes (classes 15, 16) | Kerosene | 4 l/s |
Marina (marine) |
Boats (class 14) | Diesel | 2 l/s |
Road (fuel) |
Every other class | Petrol, premium, diesel | 0.65 l/s |
A station refuses a vehicle it does not serve ("This station does not serve that vehicle"). The classes are in
Config.Pump.kinds.

Membership discount ​
Off by default. With Config.Pump.membership.enabled = true, a player carrying the membership item (fuel_card)
gets 2 % off at every station; item metadata brand = 'ltd' limits a card to one brand. The side card shows the
programme (LTD Rewards, RON Club, Xero Rewards, Globe Card, Coil Charge+). np_fuel registers no such item: add one to
your inventory.







