Skip to content

np_shops v0.1.0 ​

A branded shop system in the Nimbus UI look of np_hud and np_phone. Every store wears its GTA lore identity: 24/7, LTD, Rob's Liquor, Ammu-Nation, YouTool, Burger Shot, Vangelico and 95 more. The layout and the components stay the same everywhere, so the system feels like one product.

One engine runs every kind of store: grocery and hardware shops with a cart, Ammu-Nation with licenses and serial numbers, restaurants with combos and a kitchen queue, fuel pumps, jewelers with financing, pawn shops, and the counters of barbers, clothing stores and tattoo parlours. Players can rob the register and the safe, buy a shop, hire staff and order wholesale goods that couriers deliver.

It targets es_extended + np_inventory first, and also runs on qbx_core, qb-core or standalone, with ox_inventory, qb-inventory or the plain ESX inventory. Hard dependencies: oxmysql, np_npchandler (the shop clerks) and np_prophandler (props in the hand). Every other np_* sibling is optional and has a built-in fallback.

Storefront 24/7

Ammu-Nation: license, inspector, attachments Burger Shot: combos and order ticket
Ammu-Nation Burger Shot
YouTool: grid view Receipt
YouTool Receipt
Fuel pump with shop extras Kitchen queue for staff
Pump Kitchen
Vangelico: showcase, engraving, financing Pawn & Jewelry: sell tab
Vangelico Pawn
Herr Kutz: service entry card Peek card at the counter
Herr Kutz Peek
Robbery: register Robbery: safe time lock
Robbery Safe
Owner dashboard Shop editor
Owner Editor
Brand-accent look (Config.BrandAccent) Liquid Glass
Brand accent Liquid Glass
Phone app: Discover Phone app: My shop Phone app: Receipt
Discover My shop Receipt

The screenshots come from the browser mock (see Development). The UI ships in English and German.

At a glance ​

  • 102 lore brands with real logos on a glossy sign plate, in 14 groups. 79 shops ship ready to use at the well-known counters. See Shops & brands.
  • Cart-first checkout: list or grid view, search with /, tabs and offers. The server checks price, stock, license, age, money and carry weight. Overweight lines go to a pickup stash instead of failing. See Checkout.
  • Pricing: offers with an end date, bulk tiers, happy hour, job discounts and loyalty tiers per brand. VAT on the receipt is optional.
  • Payments through np_payments when it runs: every account the player may use, tips at staffed shops, and Maze Bank financing at Vangelico. Without it, framework cash and bank.
  • Receipts are kept per character, shown in the shop and in the phone app.
  • Shop types: weapons, food and kitchen, fuel, luxury, pawn and services. See Shop types.
  • Robbery in three steps: the register, an optional safe with a time lock, and Vangelico's display cases. Clerk reactions, silent alarm, dispatch and insurance for owners. See Robbery.
  • Player-owned shops: buy a shop, set prices and offers, hire staff with wages and commission, keep a ledger and order wholesale goods as courier jobs. See Player-owned shops.
  • Fuel stations with a shop: with np_fuel, a station and its forecourt shop are one business: sold together, one company account, mirrored staff. With pay inside, drivers pay their fuel bill at the counter. See Fuel stations with a shop.
  • In-game shop editor (/shopadmin): create, move and change shops without a restart. See Shop editor.
  • Phone app "Shops" in np_phone: discover nearby stores, follow food orders, read receipts, run your own shop. See Phone app.
  • No ACE: staff checks go through np_admin nodes (np_shops.admin, np_shops.editor, np_shops.robbery, np_shops.stock), with framework groups, Config.Admins and Discord roles as the fallback.

Who uses it ​

np_shops works with these np_* resources. All of them are optional; see Compatibility for the full table.

Resource What np_shops does with it
np_inventory Items, weights, images, stashes and weapon metadata. The best-tested inventory
np_payments Checkout sheet, refunds, pay later and financing
np_identification Licenses, age checks and the weapon register
np_hud Toasts, key prompts and progress bars
np_menu "Shop" option on clerks, robbery options on registers, safes and display cases
np_phone The "Shops" app, banners, Wallet entries and courier mails
np_character Character ids and names; barber, clothing and surgeon counters
np_tattoos Tattoo parlour counters
np_mdt Robbery calls in the MDT
np_admin Permission nodes, live settings, staff tools and the audit log
np_fuel Fuel stations and their forecourt shops as one business, fuel bills at the counter

np_drugs and np_gangs also talk to np_shops: np_drugs registers its own shops, vetoes precursor purchases with a beforeBuy hook and logs them with afterBuy, and np_gangs listens to robberies. See Exports & hooks.

Quick example ​

lua
-- server: add a shop from your own resource
exports.np_shops:RegisterShop('my_hardware', {
  label = 'Hardware Supply',
  brand = 'bean-hardware',
  locations = { vec3(2747.3, 3472.8, 55.7) },
  items = { { name = 'acetone', price = 12, stock = 20 } },
})

-- server: log every purchase over $1,000
AddEventHandler('np_shops:server:purchased', function(e)
  if e.total >= 1000 then print(('%s spent $%d at %s'):format(e.identifier, e.total, e.shopId)) end
end)

Next steps ​