np_fuel v0.1.0 ​
Fuel where every litre comes from somewhere. Every station belongs to a GTA lore brand (LTD Gasoline, RON, Xero, Globe Oil, Coil for EV charging, or independent) and has real tanks. Cars burn fuel as they drive, players refuel at the pump (or with a nozzle, a jerry can, a charger), and the station's stock goes down. When it runs low, an order goes up on the board: a player with a truck licence rents a tanker, loads it at the refinery and pumps it into the station's underground tank. Players can buy stations, set prices, hire staff and order deliveries from their company account. The phone app finds the cheapest fuel nearby.
It uses the Nimbus UI look of np_hud and np_phone: grey glass, glossy squircle tiles, and colour only where it means something (the fuel tint on a fuel tile, the brand on its tile, red for empty or low). It runs on es_extended, qbx_core and qb-core, or standalone, with np_inventory, ox_inventory, qb-inventory or no inventory. es_extended with np_inventory is the first target. Hard dependencies: oxmysql and np_prophandler 1.1.0+ (EV charger props, the nozzle).
Not yet run on a live server
Every module is covered by the plain-Lua test suite (four framework / inventory combinations, the whole loop end to end on three of them) and every screen is rendered from mock data. The game-side parts (station brands and coordinates, depots, props, natives) still need the checks in Installation → Before you open it.

| The live meter | Wrong fuel: warn with the consequence |
|---|---|
![]() |
![]() |
| Airfield: kerosene | Fuel gauge without np_hud |
![]() |
![]() |
| EV: choose the target | EV: charging |
![]() |
![]() |
| The owner panel | Buying a station |
![]() |
![]() |
| The order board in the truck | Unloading into the station's tank |
![]() |
![]() |
| The station network (staff) | Station editor (staff) |
![]() |
![]() |
| Fuel app: finder | German |
![]() |
![]() |
The screenshots come from the browser mock (see Development). The UI ships in English and German; the phone app screenshots are in German.
At a glance ​
- Consumption that feels like driving: fuel burns with RPM, throttle and speed, more with a damaged engine or dirty fuel. Every GTA class has a tank, a consumption factor and a fuel type (petrol, premium, diesel, kerosene for aircraft, electricity for EVs; bicycles burn nothing). At 0 % the engine stalls with the hazards on. See Refuelling → Driving.
- The pump: fuel tiles with price and stock, presets (25 % / 50 % / full / a dollar amount), a tank slider with a reserve mark, side cards for your vehicle and the station. Prepay, refund the rest: the server reserves the litres, takes the money, counts what flowed by its own clock and pays back what did not fit. See Refuelling.
- Nozzle mode (option): take the nozzle, walk to the fuel cap, hold E to pump. Drive off with it and the hose rips: the pump is out of order, fuel is spilled, and a shot or a fire lights it.
- Wrong fuel: block, warn with the consequence, or allow. Wrong fuel contaminates the tank (power loss, misfires, engine damage) until a mechanic drains it.
- EV charging at Coil sites: kWh pricing, fast chargers with a surcharge, fast up to 80 % and slower above. See EV charging.
- Jerry can with litres and fuel type in its metadata: fill it at a pump, pour it into any vehicle. See Jerry can.
- Stations have real stock. A sale takes from the tank, and an empty fuel is locked at the pump. Brand stations post delivery orders by themselves below 25 %. See Stations & ownership.
- Tanker runs: the order board (F7), licence checks through np_identification, a deposit for the rented rig, loading at the depot at wholesale price, unloading by hose, fee and fuel value paid out, and driver reputation levels. Crashes leak or burn, stolen rigs set off a GPS alert. See Supply & tanker runs.
- Player-owned stations: buy a brand station (or one a player lists), set prices within bounds, order deliveries from the company account, hire staff with roles, permissions and wages, deposit and withdraw, link your job's society account.
- Linked shops: with np_shops, a station and the shop on its forecourt are one business: one owner, sold as a bundle, one company account and the same staff. Optional pay inside: fill up first, pay at the shop counter; a driver who leaves without paying is a drive-off on the owner's feed. See Stations & ownership → Linked shops and Refuelling → Pay inside.
- Fuel app in np_phone: a price map, stations sorted by price and distance, favourites, monthly spending, price alarms, call the owner. See Fuel app.
- Staff tools: a network overview of every brand and an in-game station editor ("walk there and press E"),
/setfueland/fuelinfo, with np_admin permission nodes. See Staff tools. - Drop-in replacement: np_fuel answers the client exports of LegacyFuel, cdn-fuel, ps-fuel, lj-fuel, qb-fuel and
okokGasStation and writes the ox_fuel
fuelstate bag. See Bridges → Other fuel resources. - Server-authoritative: the client never sends a price, an amount of litres, a fuel level for a refuel or a position. Every RPC is rate limited and timed actions are checked against the server's clock.
Who uses it ​
| Resource | What it reads from np_fuel |
|---|---|
| np_hud | The fuel tile reads exports.np_fuel:GetFuel, and EVs show a battery tile from GetFuelType |
| np_helicam | FUEL % and endurance on the HUD read np_fuel first |
| np_inventory | Its built-in jerry can steps aside while np_fuel runs, and np_fuel registers jerrycan and fuel_receipt at runtime |
| np_payments | Every fill-up, charge, can, deposit and station purchase opens its checkout in category fuel, with the station as merchant |
| np_phone | The Fuel app ("Sprit" in German), owner and staff notifications, mails to offline owners |
| np_shops | Each station and its forecourt shop are one business (owner, company account, staff), and the shop counter takes pay inside bills |
All of them are optional. See Bridges → Integrations for what np_fuel does without each one.
Quick example ​
-- server: a mechanic drains a wrongly filled tank
exports.np_fuel:SetFuel(vehicle, 0, 'diesel')
-- server: another resource orders a delivery for a station (paid by the brand)
local id, err = exports.np_fuel:CreateOrder('davis_grove', 'diesel', 5000, { source = 'script', payoutCents = 25 })
-- server: log every fill-up at a pump
AddEventHandler('np_fuel:server:refueled', function(e)
-- e = { source, netId, plate, fuel, amount, percent, cents, station, method, via }
if e.via == 'pump' then print(('%s took %.1f l of %s'):format(e.plate, e.amount, e.fuel)) end
end)













