Skip to content

Shop types ​

Every shop runs on the same engine: the same storefront, checkout, receipts and robbery. The shop type picks the layout and adds its own rules. A shop takes its brand's type unless it sets type itself.

Type Layout Examples
retail List or grid with a cart 24/7, LTD, Rob's Liquor, YouTool, Digital Den, pharmacies
weapons Inspector with stats, 3D preview and attachments Ammu-Nation
food Combo builder, order ticket, kitchen queue Burger Shot, Bean Machine, Up-n-Atom, Cluckin' Bell, Pizza This
fuel Pump screen with grades and shop extras LTD Gasoline, Xero, RON, Globe Oil
luxury Showcase, engraving, certificate, financing Vangelico
pawn Shop plus a sell tab Pawn & Jewelry
service, clothing Entry card, then np_character or np_tattoos Herr Kutz, Blazing Tattoo, Binco, Ponsonbys
vehicle Retail layout Brand type of the vehicle brands

Weapons ​

Ammu-Nation

Weapon lines have kind = 'weapon':

lua
{ name = 'weapon_pistol', price = 2500, stock = 8, tab = 'pistols', kind = 'weapon', minAge = 21,
  weapon = { class = 'pistol', caliber = '9mm', ammo = 'ammo_9',
    stats = { damage = 34, range = 40, accuracy = 55, fireRate = 60, mobility = 80 },
    components = { { name = 'at_flashlight', price = 350 }, { name = 'at_suppressor', price = 1200 } } } },
  • License classes. A line's own license wins, then the class in Config.Weapons.classes, then Config.Weapons.license. Shotguns take a weapon or a hunting license, snipers a hunting license, melee needs none. np_identification checks the documents; without it, the framework licenses.
  • Inspector. Selecting a weapon shows its stats (0–100), caliber, ammo, the license you need and whether you have it, the purchase limit and any waiting time. Stats come from the line, else Config.Weapons.stats.
  • 3D preview. The weapon floats above the counter and an orbit camera circles it. Drag to turn, scroll to zoom. Attachments show on the model.
  • Attachments are bought with the weapon, priced per unit and stored in the weapon's metadata.components.
  • Serial numbers. Every unit gets its own serial (AN- plus 8 characters). The metadata is { serial, registered, components }. With np_identification the serial is registered to the buyer (registerWithId), and np_shops_weapons keeps the trail anyway. The receipt lists the serials.
  • Limits. By default 2 weapons per character in 24 hours. Classes can set their own (smg 1 per 24 h, rifle 1 per 48 h). waitMinutes adds a cooling-off time between purchases.
  • Ammo boxes. Lines of kind = 'ammo' sell boxes. One unit gives rounds of the ammo item (Config.Weapons.ammoBoxes, e.g. 50 for ammo_9).
  • Clerks fight back at Ammu-Nation during a robbery (Config.Clerks.fightBack).

Food & kitchen ​

Burger Shot

Food shops sell lines of kind = 'food', made to order, and combos:

lua
Config.Food.combos.bs_meal = { label = 'Bleeder Meal', main = 'burger', price = 12,
  sides = { { name = 'fries', surcharge = 0 }, { name = 'donut', surcharge = 1 } },
  drinks = { { name = 'water', surcharge = 0 }, { name = 'coffee', surcharge = 1 } },
  sizes = { { id = 'regular', surcharge = 0 }, { id = 'large', surcharge = 2 } } }

Config.Shops['burgershot_delperro'].food = {
  combos = { 'bs_meal' },
  kitchen = { coords = vec3(-1200.0, -897.0, 13.98) },
  job = 'burgershot',          -- optional: this job works the kitchen even without a player owner
}
  1. The player builds a combo (main, side, drink, size) and pays. Food lines don't go into the pockets. They become an order with a ticket number (A-042, per shop and day). Drinks without kind go straight to the pockets.
  2. Staff on duty (shop staff, or the shop's food.job) see the order on the kitchen screen at the kitchen point. They claim it, mark it ready or cancel it (with a refund).
  3. Without staff, the NPC kitchen cooks it in 45–90 s. A staff order nobody claims goes to the NPC kitchen after 4 minutes.
  4. When it is ready, the customer gets a toast, a phone banner and a Dynamic Island, and collects it at the counter. Orders nobody collects within 30 minutes are canceled and refunded.

A canceled order is refunded the way it was paid: each order keeps its charge. A player who is offline gets their own money (cash, bank, black money) when they are back. Config.Food.refundTo (bank by default) only applies to orders placed before np_shops kept the charges.

Kitchen queue

Happy hour (17–19 h, 10 %) applies to food shops by default. Bean Machine runs its own morning happy hour.

Fuel ​

Pump

Fuel shops list their pumps and grades:

lua
fuel = { grades = { 'regular', 'super', 'diesel' },
  pumps = { vec3(-70.21, -1761.79, 29.53), vec3(-63.61, -1767.93, 29.26) } },
  • At a pump, E opens the pump screen for the vehicle standing next to it: tank level, grade, amount (liters, $20, $50, full) and the price.
  • Grades: regular, super, diesel, kerosene and EV charging, with prices per liter or kWh (Config.Fuel.grades). Electric vehicles (Config.Fuel.models) only charge. Helicopters and planes only take kerosene.
  • Shop extras (a jerry can, a drink) are added to the same payment and handed over at the pump.
  • The nozzle runs for secondsPerLiter per liter (3–30 s). The server only takes the payment once that time passed, and hands over exactly the liters it charged:
    • With a fuel script that keeps the level in the vehicle state bag (ox_fuel, Config.Fuel.bridge = 'statebag') the server reads and writes Entity(vehicle).state.fuel.
    • With LegacyFuel, cdn-fuel, np_fuel or the native level, the state bag is stale, so the server neither reads nor writes it. The level the client reported only sizes the quote, and the payer's client adds the paid percent points (delta) to the level its fuel bridge reads now. See Bridges → Fuel.
  • Pumps of a robbed shop, or one the owner or an admin closed, sell nothing. Opening hours don't stop a pump.

The shipped LTD on Grove St pairs a fuel shop (ltd_grove_fuel, hidden, no blip) with the normal LTD counter. A priceModifier hook can change fuel prices: the item name is fuel:<grade>.

With np_fuel

While np_fuel runs, the pump shops step aside (Config.Fuel.yieldToNpFuel = true): no pump points, and np_fuel serves every pump. The shop counter next to an np_fuel station becomes part of that station's business, and with pay inside it takes the fuel bills. See Fuel stations with a shop.

Luxury ​

Vangelico

Luxury lines have kind = 'luxury' and luxury = { engravable, certificate, finance }.

  • Showcase: the most expensive items are featured large (Config.Luxury.showcase, 4).
  • Engraving: up to 24 characters for $150 per unit, stored in the item's metadata.
  • Certificate: every unit gets a serial (LX-…) and metadata.certificate = '<shop>-<serial>'.
  • Financing with np_payments: pay in 4 weeks (+5 %) or 8 weeks (+9 %). Each instalment is an np_payments invoice, due every 7 days, with a $50 late fee. Totals from $1,000; at most $60,000 open per character within 60 days. The plans show as payment methods (finance:<plan>). Without np_payments, financing is not offered.
    • No invoice is written unless every piece can be handed over (pockets or pickup stash), else no_space. A piece that fails anyway voids its share of the instalments (newest first); financing is never refunded as cash.
    • The shop is credited per instalment np_payments reports paid, not at the counter.
    • Every invoice is tracked in np_shops_finance (status open, paid, void or refunded).

Vangelico's display cases can be smashed. See Robbery → Display cases.

Pawn ​

Pawn & Jewelry

A pawn shop sells like any shop and has a sell tab. It buys what pawn.buys lists, or Config.Pawn.defaultBuys (gold ring $120, Rolex $450, diamond ring $900, gold chain $300, phone $80).

  • Every further unit of the same item sold by one character on one day pays 15 % less, but never below 30 % of the price.
  • Each character can sell for at most $5,000 a day.
  • Stolen goods (metadata stolen, set on robbery loot) are refused by default. With stolen = 'reduce' they are bought at 40 %, paid as black money.
  • An item the shop also sells goes back into its stock.
  • A player-owned pawn shop pays out of its business account and only what that account holds (insufficient_funds). The shop's job lock (groups) applies like at the counter (forbidden).
  • The stacks are read again right before they are taken and removed by slot and metadata, so a swapped slot can't pass a stolen item off as a clean one (price_changed).
  • beforeSell hooks can veto a sale or change the price, and every sale fires np_shops:server:sold.

Services ​

Herr Kutz

Barbers, clothing stores and tattoo parlours keep their real editors in other resources. np_shops gives them the branded counter, blip, hours and entry card:

lua
Config.Shops['barber_davis'] = {
  brand = 'herr-kutz', type = 'service', service = { kind = 'barber' },
  locations = { { coords = vec3(136.83, -1708.37, 29.29), radius = 3.0 } },
  items = {}, robbery = false, ownable = false,
}
  • The kind is service.kind, else the brand group (barber, tattoo, clothing). Type clothing defaults to clothing.
  • The counter shows an entry card with the menu and "from" prices (Config.Services.menu). Take a seat opens the editor. Config.Services.entryCard = false skips the card.
  • Barber, clothing and surgeon open np_character's store. Tattoo opens np_tattoos's parlour. They charge the player themselves.
  • Without them, the first running resource of Config.Services.fallbacks gets its client event (illenium-appearance, qb-clothing, esx_skin). Event names differ between versions of those resources, so check yours.

There is no lore location for a plastic surgeon. Add your own shop with service = { kind = 'surgeon' }.