Skip to content

Compatibility ​

np_shops requires two np_* resources, np_npchandler and np_prophandler (see Required handlers). Every other sibling it talks to lives behind one adapter in integrations/, has a built-in fallback, is detected at start, and is picked up or dropped when it starts or stops later. Config.Integrations.<name> = false forces the fallback. The console prints one line per sibling: active, fallback: …, missing export <name>, off in config or not running. npshops_status prints it again.

Required handlers ​

Both are fxmanifest dependencies: they start before np_shops, and np_shops does not start without them. There is no fallback and no Config.Integrations switch.

Handler Used for
np_npchandler Every clerk is a networked, always spawned NPC there (registerNpc, id np_shops:<shopId>:clerk, role shop_clerk) with greetings, staff warnings and hostile reactions; their incidents raise the robbery alarm. Reactions (hands up, alarm, fight back, calm) go through its runtime control. Clerks are hidden with setNpcEnabled while staff is on duty. Everything is registered again when np_npchandler restarts. If its config restricts models or scenarios, the clerk models and Config.Clerks.scenario must be on those lists
np_prophandler Props in the hand during a progress bar (the fuel nozzle): a synced attach, removed with detach

np_* siblings ​

Sibling With it Without it
np_inventory The inventory bridge np: items, weights, item images, stashes (pickup and owner stock), weapon metadata (serial, attachments) and engravings in tooltips. Timed actions block the inventory ox_inventory / qb-inventory / ESX bridge
np_payments The checkout sheet with every account and card, tips, pay later, refunds to the account that paid, Maze Bank financing at Vangelico Framework cash and bank, charged directly. No financing
np_identification Licenses (weapon, hunting, business), age checks with the id_card, the weapon register Framework licenses and date of birth. Serials stay in np_shops_weapons
np_hud Toasts, key prompts, progress bars; hides HUD zones under a screen np_shops' own NUI layer draws them
np_menu "Shop" option on clerks, robbery options on registers, safes and display cases Key prompts at the counter and the targets
np_phone The Shops app, banners, Dynamic Island, Wallet entries, courier mails Toasts. No app
np_character Character ids and names; barber, clothing and surgeon counters open its stores Framework identifier (standalone: the FiveM license); appearance fallbacks
np_tattoos Tattoo counters open its parlour Appearance fallbacks, else "not available"
np_mdt Robbery calls in the MDT (first dispatch choice): ReportCall with kind alarm, priority 1–3 and the shop as caller The next dispatch
np_admin Permission nodes, Resource settings, staff tools (editor, restock, reset robbery), audit log Framework admin groups, Config.Admins, Discord roles
np_mechanic Nothing shared. np_shops' Los Santos Customs and Beeker's counters only sell parts (repair kits, tires, jerry cans). Tuning stays with np_mechanic. If both prompts show at a workshop, remove the lsc_* and beekers_paleto shops from tools.lua —
np_discord Admins by Discord role (Config.AdminDiscordRoles), the shops log channel No Discord roles, no Discord log
np_gangs Every robbery is reported to it (protection, turf heat). It also listens to np_shops:server:robbed. Its protected shops are np_shops storefronts with a members' price hook The event only
np_drugs Second dispatch choice. np_drugs registers its own shops (RegisterShop) and keeps the purchase trail of precursor buyers through a beforeBuy hook that never vetoes The next dispatch
np_farming Registers its farm supply store (seeds, tools) with an afterBuy hook on its own shops; shop owners post farm contracts and receive the deliveries in their stock (AddStock) An inventory shop; contracts go to a pickup locker
np_minigames Robbery: the safe's lockpick method plays its server-checked lockpick game instead of the 30 s hold (optional games for the register and display cases). See Robbery → Minigames The holds
np_fuel Every np_fuel station and the shop next to it are one business: sold together at the station, one company account (the station's balance), mirrored staff. With np_fuel's pay inside, the shop counter takes the fuel bills. np_shops' own pump shops step aside while np_fuel runs. See Fuel stations with a shop Nothing linked: every shop keeps its own owner, account and staff. Fuel levels through ox_fuel, LegacyFuel, cdn-fuel, state bag or native

np_inventory's own shops ​

np_inventory has a simple shop system of its own. Several of its default shops (24/7, Ammu-Nation, YouTool) stand at the same counters as np_shops' shops. You don't have to do anything about it: np_inventory detects np_shops and steps aside on its own. While np_shops runs, np_inventory's built-in shops (its Config.Shops) have no prompts, no blips and refuse purchases, so every counter shows one prompt. This is live: start or stop np_shops at runtime and np_inventory's shops disappear or come back without a restart, in either start order. np_inventory's console says built-in shops: off, np_shops is running. See np_inventory → np_shops detection.

  • Use np_shops only: nothing to do. np_shops already ships the lore counters. You don't need to empty np_inventory's shared/config/shops.lua.
  • Bring your np_inventory shops over: set Config.ImportInventoryShops = true. At start np_shops reads np_inventory's shared/config/shops.lua and registers each shop as inv_<id>, with the brand from Config.Catalog.importBrands (ammunation → Ammu-Nation, hardware → YouTool …). Items, prices, stock, licenses, job locks, discounts and the society carry over. np_inventory's own copies stay switched off, so nothing shows twice.
  • Keep both systems: set Config.NpShops = false in np_inventory's shared/config.lua. Then both prompts show at shared counters again; remove the locations you don't want twice.

np_inventory's RegisterShop / OpenShop exports and the qb-inventory shop exports are np_inventory's, not np_shops'. Shops other resources create there (np_drugs, np_gangs fallbacks …) stay in np_inventory and stay active while np_shops runs.

Frameworks and inventories ​

Supported Notes
Frameworks es_extended (first target), qbx_core, qb-core, standalone ESX wins in auto mode. Standalone: cash is the money item, jobs come from Config.StandaloneJobs, no society accounts
Inventories np_inventory (first target), ox_inventory, qb-inventory, the ESX inventory, none ESX and qb have no stashes: no pickup stash, overweight lines are refused, owners restock only through wholesale
Society accounts esx_addonaccount (society_<job>), qb management The company payment method, tax and payouts to a society
Banking Through np_payments Without np_payments: framework cash and bank
Dispatch np_mdt, np_drugs, ps-dispatch, cd_dispatch, qs-dispatch Built-in: a toast and a blip for police on duty
Fuel np_fuel (its stations replace np_shops' pump shops while it runs, Config.Fuel.yieldToNpFuel), ox_fuel, LegacyFuel, cdn-fuel A state bag (Entity(veh).state.fuel) or the native level. Only ox_fuel and the state bag bridge keep the level in the state bag; with the others the paying client adds the liters that were paid for
Appearance illenium-appearance, qb-clothing, esx_skin Only as a fallback for service counters without np_character / np_tattoos

Details per bridge: Bridges.

Other shop resources ​

np_shops replaces esx_shops, qb-shops and ox_inventory's shops. Its counters use the same well-known coordinates, so remove or disable those resources' shops to avoid two prompts at one counter.

Resources that need a shop list (vending, maps, tablets) can read it with GetShops and GetShopCoords.