All products

np_shops

A shop system where every store wears its GTA lore brand. 24/7, Rob's Liquor, Ammu-Nation, YouTool, Burger Shot, LTD pumps and Vangelico share one engine and one layout, each with its real logo. Players fill a cart, pay and carry it out. Others rob the register, and some buy the store and run it.

v0.1.0ESX · qbx · qb · standaloneRequires oxmysqlRequires np_npchandler · np_prophandler
Price TBAStore link follows at release
Installation guideDocumentation
Version
0.1.0
Frameworks
ESX, qbx, qb, standalone
Dependencies
oxmysql, np_npchandler, np_prophandler
Database
Tables created on start
Inventory
np_inventory, ox_inventory, qb-inventory, ESX
Fuel
np_fuel, ox_fuel, LegacyFuel, cdn-fuel or a state bag
Optional
np_payments, np_identification, np_hud, np_menu, np_phone, np_admin, np_fuel, np_character, np_tattoos, np_discord, np_mdt
Languages
English, German
Build
Node 18+ to build the NUI once
24/7 on Innocence Blvd: the cart with the carry weight, an offer, a sold-out item with the next delivery, beer locked behind an age check, the loyalty card discount and cash or card
24/7 on Innocence Blvd: the cart with the carry weight, an offer, a sold-out item with the next delivery, beer locked behind an age check, the loyalty card discount and cash or card

Taken from the NUI in the browser at 1920×1080 with mock data. The brand sheet is a design render.

What's in it

The client only sends a shop, item names and counts. Prices, stock, licenses, weights and loot are worked out on the server.

102 lore brands

  • Real GTA logos on a glossy sign plate: 24/7, LTD, Rob's Liquor, Ammu-Nation, YouTool, Burger Shot, Vangelico, Xero and more.
  • Over 70 stores placed at the lore counters, each with a clerk, a blip and opening hours.
  • Add your own brand or shop in the config, no code needed.

Cart-first checkout

  • List or grid, search with /, tabs and offers. The carry bar shows what still fits.
  • Items show their state: in stock, low, sold out with the next delivery, or locked with the reason.
  • Too heavy? The rest goes to a pickup counter instead of failing.

Prices that move

  • Offers with an end date, bulk prices, happy hours and job discounts for police and EMS.
  • Loyalty cards per brand: points on every receipt and up to 5 % off at gold.
  • Cash, bank cards, the company account, or dirty money where the shop takes it.

Shop types

  • Retail, weapons, food, fuel, luxury, pawn and services on the same engine.
  • Each type gets its own layout: an inspector, a combo builder, a pump or a showcase.
  • Barbers, clothing and tattoo shops open np_character or np_tattoos.

Robberies

  • Hold to empty the register, then crack the safe with a lockpick or make the clerk open it.
  • Clerks raise their hands or press the silent alarm. Ammu-Nation staff fight back.
  • Police get a dispatch alert, and the shop stays closed for a while.

Player-owned shops

  • Buy a store, hire staff, set wages and prices. Revenue goes to a business account.
  • Staff on duty ring up a cart, and the customer accepts it before the checkout opens. Nobody there? The NPC checkout sells at a lower margin.
  • Restocks are posted as delivery jobs for couriers.
  • With np_fuel: the shop at a fuel station is sold with the station and shares its account and staff.

Shops app

  • An np_phone app: nearby shops with live status, food orders, receipts and My shop.
  • Banners when an order is ready, an item is back in stock or your shop was robbed.

Editor and safety

  • /shopadmin places shops, counters, items, prices and hours in game, without a restart.
  • Every purchase, robbery and price change is logged. Optional Discord channel.
  • One rate-limited RPC with payload limits. No ACE permissions.
  • Almost every config option is a setting in np_admin, even while np_shops is stopped.

A closer look

Every store in its brand

A shop picks a brand from the registry. The logo, color, tagline and default layout come with it. The rest of the screen stays neutral Nimbus, so 102 brands still look like one system.

Logo plates for 24/7, LTD, Rob's Liquor, Xero, RON, Ammu-Nation, YouTool, Digital Den, Dollar Pills, Vangelico, Pawn & Jewelry, Fleeca, Maze Bank and more, each with its brand color
  • 14 groups: groceries, fuel, weapons, tools, pharmacies, clothing, jewelry, barbers, tattoo, vehicles, restaurants, bars, other and banks.
  • The brand color stays in the logo plate. Config.BrandAccent also puts it on the tabs, bars and pay button.
  • Fleeca and Maze Bank logos show on the payment tiles.
  • Lore products like eCola, Sprunk, Pißwasser and Phat Chips in the default stock lists.

One engine, different layouts

The shop type picks the layout. Stock, prices, payment and receipts work the same everywhere.

TypeBrandsWhat it adds
Retail24/7, LTD, Rob's Liquor, YouTool, Digital DenList or grid with a cart, age checks, bulk prices
WeaponsAmmu-NationLicense classes, an inspector with stats, attachments, serial numbers registered to the buyer, a purchase limit per 24 h
FoodBurger Shot, Cluckin' Bell, Bean MachineA combo builder, an order ticket and a kitchen queue for staff, with an NPC kitchen as fallback
FuelLTD, Xero, RON, Globe OilFuel grades with prices per liter, EV charging, kerosene for aircraft and shop extras brought to the pump
LuxuryVangelicoA showcase, engraving, a certificate of authenticity and financing in weekly instalments
PawnPawn & JewelryA sell tab with prices that drop on repeat sales, a daily cap and a stolen goods check
ServicesHerr Kutz, Binco, Blazing TattooAn entry card that opens the np_character or np_tattoos editor

The checkout

Walk up to the counter and press E. A peek card shows the shop's offers before you open it.

  1. Fill the cart: add items from the list or the grid. The carry bar fills with the weight.
  2. Locks: beer needs age 21 and an ID card, a heavy pistol needs a class B license, a bolt cutter a business license.
  3. Pay: cash, a Fleeca or Maze Bank card or the company account. With np_payments the checkout runs through its sheet.
  4. Receipt: items go to the inventory, the rest to the pickup counter. The receipt lands in the phone.

Sold out? Tap the bell and get a banner when it's back. Stock refills on a timer, or from the owner's stash in a player-owned shop.

Robbery in three phases

The server checks every step: enough police on duty, a weapon drawn, a filled register and no cooldown.

Emptying the register of a 24/7 at 62 %, with $740 so far and a hint to stay within 8 m
  • Register: hold for 25 s and stay close. The loot depends on how full it is.
  • Safe: a lockpick or make the clerk open it, then wait out a 2 minute time lock.
  • Escape: a 90 s getaway timer. The clerk may have pressed the silent alarm.
  • Dispatch through np_mdt, ps-dispatch, cd_dispatch, qs-dispatch or a built-in alert.

Run your own shop

/shopowner buy at the counter buys the store. /shopowner opens the dashboard.

PartWhat the owner doesDefault
Buy and sellBuy with a business license, sell back any time$180,000 for a 24/7, 70 % back
Prices and offersOwn prices and offers with an end date, within a capUp to 5× the base price
StaffOwner, managers and employees with wages and a commission12 staff, up to 25 %
NPC checkoutSells while nobody is on duty, at a lower marginThe owner keeps 70 %
WholesaleRestocks become delivery jobs. NPC freight takes over if no courier does60 % of the price, 20 min
RobberiesA loss notice with the insurance share50 % back

The dashboard shows revenue, margin, a 14 day chart, stock below minimum and the business account.

The shop at the fuel station

With np_fuel running, an LTD or a 24/7 next to a fuel station is part of that station's business.

A fuel bill at the top of the cart: pump 2, 23.4 litres of Super, $47, with a green Pay button
  • Fuel bills at the counter: with np_fuel's pay inside, drivers fill up first and pay here. The bill sits on top of the cart with its own Pay button.
  • Sold with the station: one owner and one bundle price, bought at the station's office.
  • Shared account: sales, wages and wholesale orders run through the station's balance. The dashboard shows which station.
  • One crew: staff hired at the pumps work the counter too, and the other way round.

np_shops' own pump shops step aside while np_fuel runs, so every pump has one prompt. Without np_fuel every shop runs on its own.

np_phone Shops app

With np_phone running, np_shops adds a Shops app.

Shops app: Discover with nearby shops and their status, a Burger Shot order ready for pickup, and My shop for the owner of 24/7 Innocence
  • Discover: shops nearby with open, closed and robbed states, and a route.
  • Orders: follow a food order from the kitchen to the counter.
  • Receipts: every purchase, kept per character.
  • My shop: revenue, open and NPC checkout switches, owner notices and reorders.

Set it up

Compatibility

Every bridge is detected at start. np_npchandler and np_prophandler are required. Every other NP DEV sibling is optional and has a built-in fallback. In auto mode ESX wins when several frameworks run.

KindSupported
Frameworkes_extended first, then qbx_core, qb-core or standalone
Inventorynp_inventory first, then ox_inventory, qb-inventory or the ESX inventory
Paymentnp_payments for the checkout, refunds and financing, or the framework's cash and bank
Fuelnp_fuel (its stations and their shops become one business), ox_fuel, LegacyFuel, cdn-fuel or a fuel state bag
Dispatchnp_mdt, ps-dispatch, cd_dispatch, qs-dispatch or a built-in alert
Licenses and agenp_identification, or the framework's licenses and date of birth
UInp_hud for toasts, prompts and progress bars, np_menu for the clerk option, np_phone for the Shops app
Staffnp_admin permission nodes, or the framework's admin groups, an identifier list and np_discord roles

Installation

oxmysql, np_npchandler and np_prophandler are the hard dependencies. The tables are created on start.

  1. Put the resource in resources/ as np_shops.
  2. Build the NUI once (Node 18+). The release zip ships it built.
    cd web && npm ci && npm run build
  3. Start it after your framework, inventory and the np_* resources you use:
    ensure oxmysql
    ensure es_extended     # or qbx_core / qb-core / nothing
    ensure np_inventory    # or ox_inventory / qb-inventory
    ensure np_payments     # optional
    ensure np_npchandler   # required
    ensure np_prophandler  # required
    ensure np_shops
  4. Database: nothing to do with Config.AutoCreateTables = true. Otherwise import sql/install.sql.
  5. Start the server. The console prints one line per bridge and sibling. npshops_status prints it again.
  6. Add or move shops with /shopadmin, or in shared/config/shops/, one file per brand group.

For your own scripts

Register shops from other resources, open them, add stock, and hook into purchases, robberies and prices.

-- server: a shop from your own resource
exports.np_shops:RegisterShop('my_shop', {
  label = 'Hardware',
  locations = { vec3(2747.3, 3472.8, 55.7) },
  items = { { name = 'acetone', price = 12, stock = 20 } },
})
exports.np_shops:OpenShop(source, 'my_shop')

-- check or change every purchase
exports.np_shops:registerHook('beforeBuy', function(p)
  -- p.source, p.shopId, p.items
end, { resource = GetCurrentResourceName() })

AddEventHandler('np_shops:server:robbed', function(e)
  -- e.shopId, e.coords, e.robber, e.amount
end)

Questions

Do I need np_inventory or np_payments?

No. np_inventory is the best-tested path, but ox_inventory, qb-inventory and the ESX inventory work too. Without np_payments players pay with the framework's cash and bank. Split payments, tips, pay later and Vangelico financing need np_payments.

Can a cheater buy at a fake price?

No. The client only sends the shop, item names, counts and a payment method. Price, stock, licenses, age and weight are checked on the server, and the player's position comes from the server too.

Does it work without a framework?

Yes. Standalone uses the money item for cash and Config.StandaloneJobs for jobs. np_character supplies the character when it runs.

Can I keep my np_inventory shops?

You don't have to empty them. np_inventory detects np_shops and switches its own shops off while np_shops runs, so a counter never shows two prompts. With Config.ImportInventoryShops = true, np_shops takes them over and gives them a matching brand. To run both side by side, set Config.NpShops = false in np_inventory.

How does it work with np_fuel?

np_fuel pairs each fuel station with the ownable shop next to it. The pair has one owner, is sold as a bundle at the station, shares the station's company account and the same staff. With np_fuel's pay inside setting, drivers pay their fuel bill at the shop counter. np_shops' own pumps step aside while np_fuel runs.

Can I add my own brand?

Yes. A brand is a label, a logo, a color and a tagline. Add it in the config and point your shops at it.

Is it in German?

English and German, for the Lua messages, the NUI and the phone app, set with Config.Locale. Prices follow the locale, for example $25.17 or 25,17 $.

Works well with

Ensure it, walk to a 24/7, press E.

Installation, every config key and every export are in the docs.

Install np_shops