Configuration ​
Everything is in shared/config/. The files are shared (client and server), so keep secrets out of them. The
numbered files are the core and load first; the named files belong to one module each. Money is integer cents
everywhere (136 = $1.36), except where a key says dollars. Many values can also be changed live on np_admin's
settings page (see Editable in np_admin).
| File | What |
|---|---|
00_core.lua |
Locale, bridges, staff, integrations, payments, RPC limit, ledger, seed |
01_fuel.lua |
Fuel types and base prices, thresholds, vehicle profiles, pump models, fuel cap bones |
02_stations.lua |
The seed list of stations: brand, coordinates, tanks, fill point, chargers, blip |
03_supply.lua |
Depots, wholesale prices, the tanker rig |
vehicles.lua |
Consumption, reports, persistence, compat SetFuel, stall, contamination, low-fuel hint, gauge |
pump.lua |
Pump mode, wrong fuel, flow rates, presets, membership, nozzle, receipts, blips |
jerrycan.lua |
The jerry can item |
ev.lua |
EV charging |
stations.lua |
Ownership, buying and selling, price limits, brand pricing, roles, wages, company money |
supply.lua |
Delivery orders, the tanker job, licences, reputation, risks |
phone.lua |
The Fuel app |
link.lua |
Linked shops: a station and its np_shops forecourt shop as one business |
admin.lua |
Staff commands and the station editor |
Core ​
shared/config/00_core.lua
| Option | Default | Description |
|---|---|---|
Config.Locale |
'en' |
'en' or 'de', for server messages and the UI |
Config.Debug |
false |
Debug log |
Config.Framework |
'auto' |
'esx', 'qbx', 'qb', 'standalone', or auto-detect (es_extended → qbx_core → qb-core → standalone) |
Config.Inventory |
'auto' |
'np' (np_inventory), 'ox', 'qb', 'none', or auto-detect in that order |
Config.Admins |
{} |
Identifiers that are staff without np_admin ('license:…', 'discord:…'). See Permissions |
Config.AdminGroups |
esx = { 'admin', 'superadmin' }, qb = { 'admin', 'god' } |
Framework admin groups that are staff without np_admin (ESX xPlayer.getGroup(), qb-core / qbx_core HasPermission) |
Config.AdminDiscordRoles |
{} |
Discord role ids or np_discord role names that are staff without np_admin (needs np_discord) |
Config.AdminDiscordCacheSeconds |
60 |
Cache of the Discord role check |
Config.Integrations.<name> |
'auto' |
false forces the built-in fallback for that sibling. Names: np_inventory, np_hud, np_menu, np_phone, np_payments, np_identification, np_character, np_discord, np_shops, np_minigames. np_prophandler is required and has no entry |
Config.Pay.category |
'fuel' |
np_payments category of every payment |
Config.Pay.fallbackOrder |
{ 'bank', 'cash' } |
Without np_payments: accounts tried in this order (the pump screen itself is the confirmation) |
Config.Pay.standaloneFree |
true |
Standalone (no economy): fuel is free instead of impossible |
Config.Rpc |
{ perSecond = 10, burst = 20 } |
Token bucket per player over every RPC |
Config.Timers.tickSeconds |
5 |
Tick of the persistent timer scheduler |
Config.Ledger.keepDays |
90 |
Ledger rows older than this are dropped |
Config.Seed.stations |
true |
Insert Config.Stations into the database for station ids it does not have yet |
Fuel types and vehicles ​
shared/config/01_fuel.lua. Prices are the city base price a brand or an owner starts from.
| Fuel | Unit | Base price | Tint | Icon |
|---|---|---|---|---|
petrol |
l | 136 ($1.36) | orange | gas-pump |
premium |
l | 165 | rust | fire-flame-curved |
diesel |
l | 142 | olive | oil-can |
kerosene |
l | 198 | blue | plane |
electric |
kWh | 49 | green | bolt |
The tints mean the same everywhere: pump, HUD, owner panel, phone, receipts.
| Option | Default | Description |
|---|---|---|
Config.Fuel.lowPercent |
20 |
Low-fuel hint and the HUD ring |
Config.Fuel.reservePercent |
5 |
The "reserve" mark; the engine stalls at 0 |
Config.Fuel.chargeRounding |
'round' |
Cents → whole dollars at the payment edge: 'round', 'ceil' or 'floor' |
Config.Fuel.compatible |
{ petrol = { premium = true } } |
Extra fuels a vehicle takes without harm (a petrol car takes premium) |
Config.Fuel.defaultProfile |
{ tank = 60, consumption = 1.0, fuel = 'petrol' } |
Profile of a vehicle without a class profile |
Config.VehicleClasses[class] |
see below | { tank, consumption, fuel, none? } per GTA class (GetVehicleClass 0..22). tank in litres (kWh for EVs), consumption a factor on the base burn, none = true no fuel at all |
Config.VehicleModels[model] |
EVs, hybrids, trucks | Per-model overrides by spawn name (lower case). Any profile field |
Config.PumpModels |
7 GTA pump props | Props the client looks for (targets, nearest pump). Add MLO pump models here |
Config.FuelCapBones |
petrolcap, petroltank, petroltank_l, petroltank_r |
Bones a fuel cap may hang on, first found wins (nozzle and jerry can position) |
Class profiles (tank in litres, consumption factor, fuel):
| Class | Tank | Factor | Fuel | Class | Tank | Factor | Fuel | |
|---|---|---|---|---|---|---|---|---|
| 0 Compacts | 45 | 0.8 | petrol | 12 Vans | 80 | 1.3 | diesel | |
| 1 Sedans | 60 | 1.0 | petrol | 13 Cycles | – | – | none | |
| 2 SUVs | 75 | 1.3 | petrol | 14 Boats | 200 | 1.8 | diesel | |
| 3 Coupes | 60 | 1.1 | petrol | 15 Helicopters | 400 | 2.5 | kerosene | |
| 4 Muscle | 70 | 1.4 | petrol | 16 Planes | 800 | 3.0 | kerosene | |
| 5 Sports Classics | 60 | 1.3 | petrol | 17 Service | 90 | 1.4 | diesel | |
| 6 Sports | 65 | 1.4 | premium | 18 Emergency | 80 | 1.2 | petrol | |
| 7 Super | 80 | 1.7 | premium | 19 Military | 250 | 2.5 | diesel | |
| 8 Motorcycles | 18 | 0.5 | petrol | 20 Commercial | 400 | 2.4 | diesel | |
| 9 Off-road | 80 | 1.4 | diesel | 21 Trains | – | – | none | |
| 10 Industrial | 300 | 2.2 | diesel | 22 Open Wheel | 50 | 1.6 | premium | |
| 11 Utility | 120 | 1.6 | diesel |
Config.VehicleModels ships the GTA electric cars (voltic, raiden, cyclone, neon, tezeract, khamelion,
imorgon, iwagen, omnisegt, virtue, buffalo5, coureur, envisage, surge, the caddies, airtug, …) as
electric with their battery size, the dilettante hybrids as petrol (40 l, factor 0.6), and the tanker trucks
phantom, packer, hauler (diesel, 500 l, factor 2.6). Only vehicles whose profile runs on electric can plug in.
Stations (seed) ​
shared/config/02_stations.lua. Config.Stations is inserted into the database on the first start (and for ids
added later). After that the database is the truth for brand, name, coordinates, owner and prices; the config keeps
the per-station layout (fuels and capacities, chargers, blip). Edit stations in the station editor.
Station = {
id = 'davis_grove', name = 'Grove Street', district = 'Davis',
brand = 'ltd', -- 'ltd' | 'ron' | 'xero' | 'globe-oil' | 'coil' | 'indie'
verified = true, -- brand checked in game
kind = 'fuel', -- 'fuel' | 'ev' | 'air' | 'marine'
coords = { x = -70.2, y = -1761.8, z = 29.5 }, radius = 25.0,
fuels = { petrol = { capacity = 20000, stock = 14000 }, premium = { … }, diesel = { … } },
fillPoint = nil, -- underground tank inlet the tanker hoses into (default: coords)
chargers = nil, -- EV: { { x, y, z, fast? } }
blip = { sprite = 361, scale = 0.7 }, -- colour defaults to the brand's
}
| Kind | Stations | Tanks |
|---|---|---|
Road (fuel) |
27 from the well-known LegacyFuel list: LTD Gasoline 5, Xero 5, Globe Oil 6, RON 6, independent 5 | Petrol 20,000 l (start 14,000), premium 10,000 (7,000), diesel 15,000 (10,000) |
EV (ev) |
5 Coil sites (LSIA, Legion Square, Del Perro Pier, Vinewood Blvd, Sandy Shores), 4 chargers each, one fast | electric = { grid = true }: unlimited, never delivered |
Airfield (air) |
LSIA Fuel Farm, Sandy Shores Airfield, McKenzie Field | Kerosene 40,000 l (25,000) |
Marina (marine) |
Puerto Del Sol, Alamo Sea | Diesel 20,000 l (12,000) |
7 of the 27 road stations are checked against the in-game brand (verified = true); the others, the airfields,
marinas and Coil sites are best guesses. Fort Zancudo is left out on purpose. See
Installation → Before you open it.
Supply data ​
shared/config/03_supply.lua
| Option | Default | Description |
|---|---|---|
Config.Depots.murrieta |
Murrieta Oil Field, refinery, radius 40 | Loads petrol, premium, diesel |
Config.Depots.xero_lsia |
Xero warehouse LSIA, radius 40 | Loads petrol, premium, diesel, kerosene |
Config.Wholesale |
petrol 82, premium 101, diesel 88, kerosene 120 | Wholesale prices in cents per litre |
Config.Tanker.truck |
'phantom' |
Tractor unit (also 'packer', 'hauler') |
Config.Tanker.trailers |
tanker 3 × 7,000 l, tanker2 4 × 7,500 l |
Trailers and their chambers. tanker2 unlocks with driver level 5 |
Config.Tanker.loadRate |
1200 |
Litres per minute at a depot |
Config.Tanker.unloadRate |
900 |
Litres per minute into a station's tank |
Config.Tanker.hoseLength |
12.0 |
Metres from the trailer to the fill point |
The depot coordinates are placeholders until you place them in the editor (overrides are stored in the database, the config is not changed).
Vehicles ​
shared/config/vehicles.lua (Config.Vehicles)
| Option | Default | Description |
|---|---|---|
tickMs |
1000 |
Client consumption tick for the vehicle the player drives |
reportMs |
10000 |
How often the driver reports the level to the server (also on low, empty and leaving) |
burn.litresPerSecond |
0.065 |
Burn at full load for a profile with consumption 1.0. A 60 l sedan at full throttle empties in about 15 min, cruising in about 35 min |
burn.idle / rpm / throttle / speed |
0.04 / 0.55 / 0.35 / 0.25 |
Load shares: idle (EVs burn nothing idle), RPM, throttle, air drag at speedRef (60 m/s) |
burn.maxLoad |
1.3 |
Load cap |
burn.damaged / burn.contaminated |
0.5 / 0.2 |
Extra burn with a wrecked engine / a fully contaminated tank |
report.distance |
12.0 |
Metres between the reporting player and the vehicle |
report.minGapMs / maxGapSeconds / tolerance |
1500 / 60 / 1.25 |
Anti-exploit: reports closer together are refused, a report claims at most 60 s, and burns at most the maximum burn × tolerance |
spawnFuel |
{ owned = 100, min = 25, max = 85 } |
First sight without a stored level: owned vehicles start full, world vehicles at a random level |
saveSeconds |
30 |
Consumption writes of one plate at most this often |
keepDays |
30 |
Levels of vehicles nobody owns are dropped after this many days |
compatCanAdd |
false |
Client scripts may raise fuel with SetFuel at any time (free fuel for cheaters). See Bridges → Other fuel resources |
restoreSeconds |
15 |
Without compatCanAdd: a raise from a client script is allowed this long after the server first saw the vehicle, for a plate np_fuel has no level for (vehicle shops, job spawns) |
stall.hazards |
true |
Hazards on when the engine stalls at 0 % |
contamination.threshold |
0.05 |
Share of wrong fuel from which the engine suffers |
contamination.misfireChance / powerLoss / damagePerKm / stallHealth |
0.35 / 0.6 / 220.0 / 120.0 |
Misfires per tick, power loss, engine health lost per km (at a share of 1.0), and the engine health below which a contaminated engine dies |
lowFuel.suggest |
'nearest' |
The low-fuel hint suggests the 'nearest' or the 'cheapest' station (within cheapestRadius, 3000 m) |
lowFuel.routeKey |
'G' |
Key mapping that sets the route (players can rebind it) |
lowFuel.routeSeconds |
20 |
How long the key works after the hint |
lowFuel.litresPer100km |
9.0 |
For the "≈ 38 km left" estimate (times the profile's consumption) |
gauge |
true |
np_fuel's own fuel gauge while np_hud is not running |
command |
'setfuel' |
/setfuel for staff (false switches it off) |
Pump ​
shared/config/pump.lua (Config.Pump)
| Option | Default | Description |
|---|---|---|
mode |
'menu' |
'menu': E at a pump, choose, pay, the meter runs. 'nozzle': take the nozzle, walk to the fuel cap, choose and pay there, hold E to pump. See Refuelling → Nozzle mode |
wrongFuel |
'warn' |
'block' (locked at the pump), 'warn' (a confirm dialog shows the consequences) or 'allow' |
wrongFuelRepairCost |
450 |
Dollars, only shown in the warning |
rate |
{ fuel = 0.65, air = 4.0, marine = 2.0 } |
Flow in litres per second per station kind |
minLitres |
0.5 |
Smallest sale |
presets |
{ 25, 50 } |
"+25 % / +50 % of the tank", then "full" and a $ amount |
cashStep |
500 |
Cents per ↑ / ↓ step of the $ amount |
finishToleranceMs / graceMs |
1500 / 10000 |
A fill reported done this close to its end counts as complete; a fill the client never finishes is settled this long after its end |
vehicleDistance |
8.0 |
Metres from the player to the vehicle (server check) |
pumpDistance |
3.0 |
How close to a pump prop the prompt or target shows |
kinds |
air = { 15, 16 }, marine = { 14 } |
Vehicle classes airfields and marinas serve. Road stations serve every other class |
membership |
enabled = false, item = 'fuel_card', percent = 2 |
A player carrying the item gets percent off. Item metadata brand limits a card to one brand. labels names the programmes (LTD Rewards, RON Club, Xero Rewards, Globe Card, Coil Charge+) |
consumptionPer100 |
9.0 |
l / 100 km at factor 1.0, for the side card |
nozzle.model |
'prop_cs_fuel_nozle' |
Nozzle prop |
nozzle.hoseLength |
6.0 |
Metres of hose; further rips it |
nozzle.brokenMinutes |
15 |
Pump out of order after a ripped hose |
nozzle.spillSeconds / spillIgniteRadius |
120 / 6.0 |
How long the spill stays, and how close shots, fire or explosions light it |
receipt |
true |
Give a fuel_receipt item after a sale |
blips.enabled |
true |
One blip per station in the brand colour |
blips.nearbyOnly / nearbyDistance |
false / 1500.0 |
Only stations near the player |
blips.showPrice |
true |
The cheapest current price in the blip name |
blips.emptyColour |
39 |
Grey: nothing to sell right now |
payInside.enabled |
false |
Pay inside: at a station with a linked shop the pump runs first and the bill is paid at the shop counter. Other stations, EV chargers and jerry cans keep prepay |
payInside.minutes |
15 |
An unpaid bill after this long is a drive-off |
payInside.leaveDistance |
30.0 |
Metres beyond the station's radius: a vehicle (or the player, without one) with an open bill further away has driven off |
Jerry can ​
shared/config/jerrycan.lua (Config.Jerrycan)
| Option | Default | Description |
|---|---|---|
item |
'jerrycan' |
Item name |
capacity |
20 |
Litres of a can whose metadata has no capacity (np_inventory's built-in cans: 20) |
fuels |
petrol, premium, diesel, kerosene | What a can may hold (never electricity) |
defaultFuel |
'petrol' |
What an empty can is filled with when the player does not choose |
distance |
3.0 |
Metres from the vehicle to pour |
pumpKey / pumpDistance |
'H' / 3.0 |
"Fill jerry can" at a pump: key mapping and distance to the pump prop |
pourRate / fillRate |
1.6 / 3.0 |
Litres per second into a vehicle / at a pump |
minMs |
2500 |
Shortest progress |
wrongFuel |
'allow' |
Wrong fuel from a can: 'allow' (it goes in and contaminates the tank) or 'block' |
weapon / weaponMaxAmmo |
true / 4500 |
GTA's petrol can weapon is refilled at a pump like a can of capacity litres |
EV charging ​
shared/config/ev.lua (Config.EV)
| Option | Default | Description |
|---|---|---|
chargerModel |
'prop_elecbox_10' |
Charger prop. GTA has no stock EV charger; this cabinet stands in. Use a streamed model if you have one |
propSpawnDistance / headingOffset |
80.0 / 0.0 |
np_prophandler spawns the charger props within this range (at most 300 m) / heading offset |
distance / vehicleDistance |
3.0 / 7.0 |
Player to the charger / to the vehicle |
kw / fastKw |
50 / 150 |
Power up to 80 % on normal and fast chargers |
above80 |
0.35 |
Share of the power above 80 % |
fastSurcharge |
25 |
% on the station's kWh price at fast chargers |
speed |
20 |
Time compression: one real second charges like 20 |
targets / defaultTarget |
{ 80, 90, 100 } / 80 |
Target presets |
minKwh |
0.5 |
Smallest charge |
finishToleranceMs / graceMs |
1500 / 10000 |
As for the pump |
Stations and ownership ​
shared/config/stations.lua (Config.StationsBiz)
| Option | Default | Description |
|---|---|---|
command |
'station' |
/station: the owner panel of the station you stand in, or your first one |
remoteAccess |
true |
Owners and staff may open their panel anywhere with the command (false: at the station) |
officeRadius |
2.0 |
Radius of the office prompt (placed in the editor; default the station centre) |
accessDistance |
40.0 |
Extra metres around a station's radius that count as "at the station" |
maxOwned |
2 |
Stations one character may own |
maxStaff |
8 |
Staff per station (owner not counted) |
hireDistance |
6.0 |
The person you hire stands next to you |
brandSale.enabled |
true |
Brand stations are listed for sale automatically |
brandSale.kinds |
road, EV, marina (air = false) |
Which kinds are for sale |
brandSale.price |
road $150,000, EV $90,000, air $300,000, marina $120,000 | Price in cents per kind |
brandSale.brandFactor |
LTD 1.15, RON 1.05, Xero 1.1, Globe Oil 1.1, Coil 1.0, independent 0.85 | Factor on that price (an LTD road station: $172,500) |
sale |
{ min = 100000, max = 100000000 } |
Listing bounds in cents ($1,000 to $1,000,000). A transfer to one player may be $0 |
sellCooldownHours |
24 |
After a purchase, before the station can be listed or change hands again |
requireNearToBuy |
true |
The buyer stands at the station (the buy screen opens at its office) |
payBalanceToSeller |
true |
On a sale the company balance goes to the previous owner |
priceLimits |
petrol 90–260, premium 110–320, diesel 95–270, kerosene 130–380, electric 25–120 | Prices owners may set, cents per unit |
priceStep / priceCooldownSeconds |
1 / 5 |
The price stepper (cents) and the cooldown per station |
brandPricing.factor |
LTD 1.00, RON 1.03, Xero 1.05, Globe Oil 1.02, Coil 1.00, independent 1.08 | Brand station prices = base price × factor |
brandPricing.drift |
enabled = true, every 30 min, maxStep = 2, maxDeviation = 0.06 |
Slow drift of brand prices (cents per step, ± share of the target) |
brandPricing.sink |
false |
Job name: brand station revenue goes to that society account (false = nowhere) |
roles.manager |
prices, orders, staff | Default permissions of a manager |
roles.employee |
none | Default permissions of an employee |
wages |
enabled = true, every 60 min, max = 500000 |
Wages in cents per interval, paid to online staff from the balance |
withdrawMax / depositMax |
50000000 |
Per withdrawal / deposit ($500,000) |
society |
{ enabled = true, minGrade = 0 } |
Link the company to the owner's job account (esx_addonaccount, qb-banking, Renewed-Banking, qb-management) |
order |
{ minLitres = 500, payout = 18 } |
Owner delivery orders: smallest order, the panel's starting fee per litre |
lowPercent |
15 |
Low-stock event and owner notification below this level |
events / driveOffs |
20 / 20 |
Feed rows / drive-offs kept per station |
Supply ​
shared/config/supply.lua (Config.Supply)
| Option | Default | Description |
|---|---|---|
enabled |
true |
The supply module |
autoOrderBelow / autoOrderTo |
25 / 90 |
Brand stations order by themselves below 25 % and refill to 90 % |
autoCheckSeconds |
300 |
How often brand stations are checked (also right away when a sale crosses the line) |
minOrderLitres / maxOrderLitres / roundLitres |
500 / 20000 / 500 |
Order sizes; automatic orders are rounded down to the step |
expireHours |
{ auto = 6, owner = 24, script = 12 } |
Open orders expire after this many hours |
urgentBelow |
10 |
An order counts as urgent below this level (board filter, driver alerts) |
fee |
petrol 22, premium 24, diesel 22, kerosene 32 | Delivery fee in cents per litre, on top of the fuel value |
rushMax |
40 |
% on the fee for a completely empty tank (scales with emptiness below autoOrderBelow) |
ownerFee |
{ min = 5, max = 200 } |
Fee per litre an owner may offer on a manual order |
ownerCanFulfil |
false |
Owners may take their own station's orders |
deposit / depositMethod |
50000 / 'bank' |
Deposit for the rented rig ($500), refunded when it is returned |
maxOrdersPerJob |
3 |
Orders per run (one per chamber at most) |
jobMinutes |
90 |
A run not finished by then is aborted (deposit lost) |
takeRadius / reach / unloadRadius / returnRadius |
60.0 / 20.0 / 15.0 / 60.0 |
Metres: depot or own rig to take an order, player to trailer, fill point for the hose, rig to depot for the return |
unloadTickMs |
4000 |
Stock is added in steps while the hose runs (the pumps unlock right away) |
spawns |
per depot | Rig spawn points (x, y, z, w). Editor overrides win |
plate |
'NPF%04d' |
Plate of the rented truck and trailer |
boardKey |
'F7' |
Key mapping of /fuelorders (players can rebind it) |
companyJobs |
{} |
Brand id → jobs whose players load at the brand's expense (fee only), e.g. ltd = { 'ltd_driver' } |
licence.enabled |
true |
Licence checks through np_identification |
licence.document / classes |
'driver_license' / { 'C', 'CE' } |
Document and classes that may drive the rig |
licence.hazmat |
'hazmat_license' |
Document for kerosene runs (false: no extra document) |
licence.requireIdentification |
false |
true: without np_identification nobody passes |
xp |
per 1,000 l 10, order 40, rush 20, contaminated −60, aborted −30, failed −50 | Reputation |
levels |
6 levels, see Supply → Reputation | XP thresholds, wholesale discount, kerosene, trailer |
stolenDistance / lostGraceSeconds / watchSeconds |
250.0 / 60 / 10 |
Stolen rig detection and how long a missing rig may stay missing |
crash |
leak 60 %, 15 % of the load; fire 15 %; explodes above 15,000 l | Crash risks of a loaded trailer (at least 2,000 l and a body health drop of 150) |
Fuel app ​
shared/config/phone.lua (Config.Phone)
| Option | Default | Description |
|---|---|---|
enabled |
true |
The app |
finderLimit |
40 |
Stations in the finder list |
spendingKinds |
pump.sale, jerrycan.fill, ev.charge |
Ledger rows that count as spending |
spendingMonths / receipts |
6 / 20 |
Months of totals / recent receipts |
maxAlarms / alarmCooldown |
8 / 1800 |
Price alarms per character / seconds before the same alarm notifies again |
pushSeconds |
5 |
Live updates to players with the app open, at most this often |
defaultPumps |
6 |
"Free pumps" when a station has no pump count |
driverAlerts / driverRadius / driverCooldown |
true / 4000.0 / 300 |
Phone alert for a new urgent order to drivers nearby |
Linked shops ​
shared/config/link.lua (Config.Link). Only while np_shops runs. See
Stations & ownership → Linked shops.
| Option | Default | Description |
|---|---|---|
enabled |
true |
Link fuel stations with their forecourt shop: one owner, one company account (the station's balance), the same staff |
radius |
60.0 |
An ownable np_shops shop whose first counter is this close (2D) to a road station is its forecourt shop. Nearest pair first, one shop per station. Hidden shops and np_shops' own pump shops never link |
pairs |
{} |
Overrides: [stationId] = shopId links these two whatever the distance, [stationId] = false never links that station |
Config.Link.pairs = {
davis_grove = 'ltd_grove', -- always link these two
route68_east = false, -- this station stands alone
}
Pairs are worked out again when np_shops starts or restarts, when a Link.* setting changes in np_admin and when
staff edit a station.
Staff tools ​
shared/config/admin.lua (Config.Admin)
| Option | Default | Description |
|---|---|---|
command |
'fueladmin' |
/fueladmin [network|editor] |
infoCommand |
'fuelinfo' |
/fuelinfo: the station you stand in, as a toast |
dropKey / backKey |
E / BACKSPACE |
Walk mode: place / back to the editor |
previewDistance |
120.0 |
Walk mode draws markers of the selected station within this range |
maxChargers |
12 |
Chargers per EV site |
radius |
{ min = 5.0, max = 150.0 } |
Station radius bounds |
capacity.max |
200000 |
Litres per tank |
templates |
per kind | Tanks of a new station: road petrol 20,000 / premium 10,000 / diesel 15,000; EV grid; airfield kerosene 30,000; marina diesel 15,000 / petrol 8,000 (all start empty) |
Minigames (minigames.lua) ​
Config.Minigames: enabled, maxMove (2.5 m), and repair for an out-of-order pump: enabled, game (torque),
difficulty (medium), opts, item (false or an np_minigames item rule), who (station / anyone), jobs,
failMinutes. Used only while np_minigames runs. See
Refuelling → Repairing the pump.
Editable in np_admin ​
With np_admin running, almost every option on this page is edited on its settings page (Resource settings → Fuel), about 265 fields. The config files stay the defaults; np_admin stores only the overrides. Each field says when it applies: most apply live, some reach clients on their next init (reload, e.g. the language and the blips) and a few need a restart (framework, inventory, integrations, base prices, commands and key bindings).
np_admin lists the settings even while np_fuel is stopped: the manifest names the schema (np_admin_settings) and
every config file it needs (np_admin_config, one line per shared/config/*.lua).
| Category | Settings |
|---|---|
| General | Language, debug output, framework, inventory, seeding the stations on an empty database |
| Integrations | Auto or off for every sibling (np_inventory, np_hud, np_menu, np_phone, np_payments, np_identification, np_character, np_discord, np_shops, np_minigames) |
| Fuel | Low fuel alert, reserve, compatible fuels |
| Prices | Base and wholesale price of every fuel type |
| Payments | Rounding to whole dollars, free fuel without an economy, np_payments category, accounts without np_payments |
| Limits | Requests per second, request burst, ledger days |
| Vehicles | Burn and load model, anti-cheat limits, spawn levels, persistence, compat SetFuel, stall, contamination, low-fuel hint and route key, own fuel gauge, /setfuel |
| Pump | Refuel mode, wrong fuel, flow rates, presets, distances, station kinds, membership, nozzle and spill, receipts, blips, pay inside (on / off, time to pay, drive-off distance) |
| Jerry can | Item, capacity, fuels, rates, distances, fill key, the petrol can weapon |
| EV | Charger power, fast chargers and surcharge, the curve above 80 %, time compression, targets, distances, charger prop |
| Stations | Owner panel, offices, staff, brand sale prices and factors, listing bounds, price limits, brand pricing and drift, wages, deposit and withdrawal limits, society link, owner orders, feed and drive-off rows |
| Supply | Auto orders, order sizes and expiry, fees, deposit, licences, reputation and XP, distances, crash risks, the tanker rig, the order board key |
| Phone | The app, finder size, spending, price alarms, live updates, driver alerts |
| Linked shops | Link stations with their shop, shop to station distance, pair overrides (see Linked shops) |
| Minigames | np_minigames on / off, walk-away distance, the pump repair game, difficulty, options, item, who may repair, jobs and extra downtime after a failure |
| Admin | Staff commands, walk-mode keys, marker range, charger and radius limits, tank capacity |
Not in np_admin, on purpose: the data tables (the station seed list, fuel types, vehicle profiles, depots, pump models, props and animations). Edit those in the config files, or stations and depots in the station editor.