Skip to content

Configuration ​

The core settings are in shared/config.lua. Each feature module has its own file in shared/config/<module>.lua, and the shops live in shared/config/shops/*.lua (see Shops & brands). All of them are shared (client and server), so keep secrets out of them. Money is whole dollars, weights are grams, and times are in seconds unless a key says minutes or ms. Every number is a starting value: tune it for your server.

With np_admin running, the main settings are also editable in game on its Resource settings page (see Editable in np_admin).

General ​

Option Default Description
Config.Framework 'auto' 'esx', 'qbx', 'qb', 'standalone', or auto-detect (es_extended → qbx_core → qb-core)
Config.Inventory 'auto' 'np', 'ox', 'qb', 'esx', 'none', or auto-detect (np_inventory → ox_inventory → qb-inventory → ESX)
Config.Dispatch 'auto' 'np_mdt', 'np_drugs', 'ps', 'cd', 'qs', 'builtin', or auto-detect in that order
Config.Locale 'en' 'en' or 'de', for server messages and the UI
Config.Debug false Debug log
Config.AutoCreateTables true Run the migrations at start. Off: import sql/install.sql
Config.ImportInventoryShops false Take over np_inventory's Config.Shops as np_shops shops (inv_<id>). np_inventory switches its own copies off while np_shops runs either way. See Compatibility
Config.RateLimit { perSecond = 8, burst = 16, maxPayload = 16384 } Token bucket per player over every RPC, and the payload size limit
Config.Money { cashItem = 'money', blackItem = 'black_money' } Standalone: cash is the inventory item cashItem. Dirty money is the ESX account black_money, elsewhere the item blackItem
Config.ImagePath 'nui://np_inventory/web/images/' Item pictures. np_inventory definitions with an image use it
Config.ImagePathFallback false true: items without an image use ImagePath .. '<item>.png'. Otherwise their icon and tint
Config.Currency { symbol = '$', position = 'before' } Currency format in the NUI
Config.BrandAccent false The brand-accent look. See Shops & brands → Look
Config.BrandOverrides see file Color, strength and tagline per brand id
Config.Keys { interact = 'E', search = '/' } Key defaults. Players can rebind np_shops: interact in the FiveM key bindings
Config.Distance { counter = 2.5, pump = 4.0, office = 2.0, slack = 1.5 } Interaction distances in meters. The server checks every one again
Config.Hud { claim = 'all' } np_hud zones a screen hides while it is open
Config.TimerTick / Config.SaveInterval 15 / 60 How often timers that survive restarts are checked, and how often cached rows are written
Config.Logs { channel = 'shops', discord = { robbery = true, ownerChanged = true, editor = true } } Audit log. Always in np_shops_log; also np_admin's audit log and the np_discord channel for the actions switched on
Config.Licenses see file Framework license names for np_identification document types, used without np_identification
Config.Items see file Look overrides for items the inventory describes poorly: [name] = { label?, icon?, tint?, image? }

Integrations ​

lua
Config.Integrations = {
  np_inventory = 'auto', np_payments = 'auto', np_identification = 'auto', np_hud = 'auto', np_menu = 'auto',
  np_phone = 'auto', np_discord = 'auto', np_character = 'auto', np_tattoos = 'auto', np_gangs = 'auto',
  np_drugs = 'auto', np_mdt = 'auto', np_fuel = 'auto', np_minigames = 'auto',
}

'auto' uses the sibling when it runs. true does the same, but prints a warning when it is missing. false never uses it and always takes the built-in fallback. np_npchandler and np_prophandler have no entry: they are required. See Compatibility.

Jobs and admins ​

lua
Config.Jobs = {
  police = { police = 0, sheriff = 0 },
  medic = { ambulance = 0 },
}
Config.AdminGroups = { 'admin', 'superadmin', 'god' }
Config.Admins = { }              -- 'license:…', 'discord:…', 'fivem:…', 'steam:…'
Config.AdminDiscordRoles = { }   -- role ids or np_discord role names
Config.StandaloneJobs = { }      -- standalone only: ['license:…'] = { job = 'police', grade = 2 }

A job group maps job names to a minimum grade. police counts officers for robberies and gets the alerts. medic and police get the job discounts of Config.Checkout.jobDiscounts. Admins pass every check. Who is an admin: Installation → Permissions.

Catalog ​

Config.Catalog (shared/config/catalog.lua): storefronts, stock, hours and blips.

Option Default Description
blips true One blip per visible shop. Closed and robbed shops are grayed out
closeDistance 6.0 The shop screen closes when the player walks this far from the counter
peekDistance, peekItems 8.0, 3 The peek card shows within this distance, with this many highlights (offers first)
lowStock 0.2 An item shows "low" below this share of its max stock
restock { amount = 0.25, minutes = 30 } Default restock of lines with stock. amount below 1 is a share of the max stock, 1 or more is units. A line can set its own restock or restock = false
notifyMe true "Notify me" on sold-out items. A phone banner or toast when they are back
ageCheck true Items with minAge need an id_card (np_identification) or a framework date of birth
clock 'game' Clock for opening hours and happy hour: 'game' (GTA day cycle from the server time), 'real' (server wall clock) or a function that returns the hour
gameMinuteSeconds 2 Real seconds per game minute for the 'game' clock
clerkModels see file Ped models that get the "Shop" context option when they stand at a counter
tabIcons see file Font Awesome icon per tab id. Labels come from the locale key tab.<id>
importBrands see file np_inventory shop id → brand id, for Config.ImportInventoryShops

Checkout ​

Config.Checkout (shared/config/checkout.lua). See Checkout.

Option Default Description
maxLines, maxCount 50, 1000 Lines per cart, units per line
taxPercent, taxAccount 0, nil VAT on the receipt, and the society that receives it (nil = nowhere)
companyGrades 2 Job grade from which the company account may pay
pickup { enabled = true, slots = 30, maxWeight = 200000, days = 7 } Pickup stash (np_shops_pickup:<hash of shop + identifier>) for lines that don't fit into the pockets
receiptsKept 100 Receipts kept per character
requestTtl 600 Seconds a payment request id is remembered, so a repeated click or a retry gets the same receipt
happyHour { from = 17, to = 19, pct = 10, types = { 'food' } } Happy hour for these shop types. A shop can set its own happyHour
jobDiscounts { police = 10, medic = 10 } Percent off per Config.Jobs group while on duty. Shops can add discounts = { [job] = pct }
loyalty { enabled = true, pointsPerDollar = 0.1, tiers = { bronze 0 / 0 %, silver $500 / 2 %, gold $2,000 / 5 % } } Points per dollar and tiers by dollars spent at the brand
allowSplit, allowTip, allowLater false, true, false np_payments options. Tips are only offered while staff is on duty
paymentTimeout 60 Seconds the np_payments sheet stays open. The client waits this + 15 s for checkout.pay
refKeepHours 24 Hours payment refs of framework money and company / business accounts are kept for refunds
ring { answerSeconds = 20, cooldownMs = 10000 } Staffed checkout: how long the customer has to answer a rung-up cart, and how often a clerk may send one
walletEntry 'fallback' Wallet entry in np_phone: 'fallback' (only without np_payments, which books its own), 'always' or false
methodBrands, jobBrands see file Bank logos on the payment tiles, and the brand of a job's company account (mechanic → LS Customs)
paymentCategory see file np_payments category per shop type (food, fuel, service, else shop)

Weapons ​

Config.Weapons (shared/config/weapons.lua). See Shop types → Weapons.

Option Default Description
license 'weapon_license' License of weapon lines that name neither their own license nor a class
classes see file License per class (melee none, pistol, smg, shotgun weapon or hunting, rifle, sniper hunting) and an optional limit per class
serialFormat, serialLength 'AN-%s', 8 Serial number format
registerWithId true Register serials in np_identification. np_shops_weapons keeps the trail anyway
limit { count = 2, hours = 24 } Default purchase limit per character over all weapon lines
waitMinutes 0 Cooling-off time between weapon purchases (0 = none)
historyDays 7 How far back limits look. Keep it at least as long as the longest limit window
ammoBoxes { ammo_9 = 50, … } Rounds per box for lines of kind ammo
stats see file Inspector stats (0–100) per item name, then per class
preview see file The 3D preview at the counter: position, camera distance, field of view, spin
previewComponents see file GTA component names per weapon for the attachments in the preview

Food ​

Config.Food (shared/config/food.lua). See Shop types → Food.

Option Default Description
npcKitchenSeconds { 45, 90 } NPC kitchen cooking time when no staff is on duty
ticketPrefix 'A' Ticket numbers A-001 … A-999, per shop and day
collectRadius, kitchenRadius 4.0, 6.0 Where customers collect, and how close staff stand to the kitchen
mergeSeconds 10 Food lines of one purchase land in one order
staffTimeoutSeconds 240 A staff order nobody claimed goes to the NPC kitchen after this long
orderTimeoutMinutes 30 Ready orders nobody collects are canceled and refunded
refundTo 'bank' 'cash' or 'bank'. Only for orders placed before charges were kept; new orders refund the way they were paid
comboTab, comboIcon 'menu', 'burger' Where combos are listed
combos bs_meal Combo definitions: main item, price, sides, drinks and sizes with surcharges

Fuel ​

Config.Fuel (shared/config/fuel.lua). See Shop types → Fuel.

Option Default Description
bridge 'auto' 'np_fuel', 'ox_fuel', 'LegacyFuel', 'cdn-fuel', 'statebag', 'none', or auto-detect
yieldToNpFuel true While np_fuel runs, np_shops' pump shops step aside: no pump points, and the pump screen answers "not available", so every pump has one prompt (np_fuel's). false runs both; but np_fuel's client SetFuel only lowers a level (unless np_fuel's Config.Vehicles.compatCanAdd), so np_shops' pumps can't fill a tank
serverStateBag true The server also writes Entity(vehicle).state.fuel, but only when the state bag holds the real level (ox_fuel, bridge = 'statebag'). See Bridges → Fuel
pumpRadius, vehicleRadius 4.0, 6.0 The player at the pump, the vehicle near the pump
defaultCapacity, capacityByType, models 65, see file Tank size in liters (kWh for EVs) by vehicle type and per model. models also marks EVs
aircraft { heli = true, plane = true } Vehicle types that take kerosene, and only kerosene
secondsPerLiter, minSeconds, maxSeconds 0.25, 3, 30 Nozzle time. The server holds the payment back until it passed
maxExtras 10 Shop extras per fill, delivered to the pump
grades, order regular $2, super $3, diesel $2, kerosene $4, ev $1 Price per liter or kWh, icon and tint per grade
anim, prop see file Nozzle animation and prop

Luxury ​

Config.Luxury (shared/config/luxury.lua). See Shop types → Luxury.

Option Default Description
maxEngraving, engravingPrice 24, 150 Characters, and the price per engraved unit
certificate, serialFormat true, 'LX-%s' Certificate of authenticity in the item metadata
plans 4 weeks at 5 %, 8 weeks at 9 % Financing plans (np_payments invoices)
intervalDays, lateFee 7, 50 One instalment every 7 days, the late fee
financeMin, maxOpenFinance, openDays 1000, 60000, 60 Smallest financed total, and the most a character may finance within 60 days
showcase 4 Featured items in the showcase (most expensive first)

Pawn ​

Config.Pawn (shared/config/pawn.lua). See Shop types → Pawn.

Option Default Description
payout 'cash' 'cash' or 'black_money'
diminish, floor 0.85, 0.3 Each repeat sale of the same item that day pays 15 % less, but never below 30 %
dailyCap 5000 Dollars per character and day
stolenFlag, stolen 'stolen', 'refuse' Metadata key of stolen goods. 'refuse' or 'reduce'
stolenFactor, stolenPayout 0.4, 'black_money' With 'reduce': 40 % of the price, paid as black money
restock true A bought item the shop also sells goes back into its stock
defaultBuys gold ring, Rolex, diamond ring, gold chain, phone What a pawn shop buys when it has no own pawn.buys

Services ​

Config.Services (shared/config/services.lua). See Shop types → Services.

Option Default Description
entryCard true The counter opens an entry card with the menu and "Take a seat". false opens the editor directly
menu see file What the entry card lists per kind, with a "from" price
kinds barber, clothing, surgeon → np_character; tattoo → np_tattoos Which resource opens each kind
fallbacks illenium-appearance, qb-clothing, esx_skin Client events tried in order without the sibling. Event names differ between versions: check yours

Clerks ​

Config.Clerks (shared/config/clerks.lua). Every clerk is a networked np_npchandler NPC. See Robbery → Clerks.

Option Default Description
enabled true Clerks on
defaultModel, models see file Model of a shop without its own clerk.model: models[type], else defaultModel. If np_npchandler restricts models, these must be on its list
scenario 'WORLD_HUMAN_STAND_IMPATIENT' Scenario of the clerks: a native scenario name or an np_npchandler scenario alias
hideWhenStaffed true No NPC clerk while a player employee is on duty
fightBack { weapons = true } Shop types whose clerk fights back instead of raising the hands
fightWeapon, calmSeconds 'WEAPON_PUMPSHOTGUN', 30 The clerk's weapon, and how long it takes to calm down
perception, policies, interactions, dialogueSet, incidentCategory see file np_npchandler settings

Robbery ​

Config.Robbery (shared/config/robbery.lua). See Robbery for every key.

Ownership ​

Config.Ownership (shared/config/ownership.lua). See Player-owned shops for every key.

Phone ​

Config.Phone (shared/config/phone.lua). See Phone app.

Option Default Description
app { id = 'np_shops', name = 'Shops', icon = 'fa-solid fa-store', tint = 'orange', default = true, … } The np_phone app entry
discoverRadius, discoverLimit 3000.0, 40 Shops further away are left out of Discover
receiptsShown, ordersShown 30, 20 List lengths
notify { orderReady = true, owner = true } Banners for ready food orders and owner alerts

Shop editor ​

Config.Admin (shared/config/admin.lua). See Shop editor.

Option Default Description
command 'shopadmin' Opens the editor
editableOrigins { 'db', 'config' } Saving a config shop stores a database copy that overrides it
maxItems 200 Item lines per editor shop
teleport true Staff may teleport to a shop
items see file Extra item names the editor offers

Editable in np_admin ​

With np_admin running, almost every option on this page is on its Resource settings page under Shops (shared/np_admin_settings.lua), about 229 fields. np_admin stores only the overrides; shared/config*.lua stays the default. Each field says when it applies: live, on the next client init or shop list rebuild (reload), or after a restart (framework, inventory, integrations, commands, key bindings, np_npchandler definitions).

np_admin lists the settings even while np_shops is stopped: the manifest names the schema (np_admin_settings) and every config file it needs (np_admin_config, shared/config.lua and one line per shared/config/*.lua).

Category Settings
General Language, debug, framework, inventory, dispatch, tables at start, np_inventory import, job groups, brand accent, currency, interact key, distances, money items, item images, RPC limits, timer tick, np_discord log channel and what goes there
Integrations Auto, on or off for every sibling (np_inventory, np_payments, np_identification, np_hud, np_menu, np_phone, np_discord, np_character, np_tattoos, np_gangs, np_drugs, np_mdt, np_fuel)
Shops Blips, storefront and peek card distances, low stock, default restock, notify me, age check, the clock for opening hours
Checkout Cart limits, VAT and its society, company payments, pickup stash, receipts, happy hour, job discounts, loyalty, np_payments split / tips / pay later and timeout, staffed checkout, Wallet entry
Weapons Default licence, serial format, register with np_identification, purchase limits and waiting period, ammo boxes, the preview camera
Food NPC kitchen time, tickets, radii, order merging, timeouts and refunds, the combo tab
Fuel Fuel bridge, Pump shops step aside while np_fuel runs, state bag, pump radii, tank sizes, nozzle time, price per grade
Luxury Engraving, certificates, financing
Pawn Payout, repeat sale factor, floor, daily cap, stolen goods
Services The entry card before the editor
Robbery On / off, hold key, police needed, cooldowns, weapon rules, register and safe values, getaway, silent alarm, insurance, dispatch, threatened clerks; np_minigames on / off, the safe's game, difficulty and break chance, the register's and the cases' game and difficulty
Clerks Clerks on / off, scenario, np_npchandler perception values, staff on duty, fight back
Ownership On / off, licence, buy method, sell-back, NPC margin, wages, commission, price and offer limits, low stock, duty, radii, ledger days, the dashboard command, staff limit, wholesale and couriers
Phone Discover radius and size, receipts and orders shown, order-ready banner
Editor Editor command, editable origins, teleport, item lines per shop

Not in np_admin, on purpose: bulk and structural data (the shops, items, brand overrides, tab icons, models, animations, props and coordinates, combos, financing plans, loyalty tiers, buy lists, service menus, weapon classes). Edit those in the config files, or shops in the shop editor.