NPC Shops

Overview

Configurable NPC stores with a cart UI. Stores can be open to everyone or only to some jobs, accept cash and/or bank, send their income to a job's society account, or be job suppli

View in store

Configurable NPC stores with a cart UI. Stores can be open to everyone or only to some jobs, accept cash and/or bank, send their income to a job's society account, or be job suppliers that are paid from the job's society account. Prices can be fixed or rise with every purchase.

Features

  • Any number of stores, each with any number of NPC locations and an optional blip
  • Target interaction or a text prompt (press E), per store
  • Access per store: anyone, whitelist of jobs, or blacklist of jobs
  • Payment methods per store (cash, bank)
  • sellto: the money players pay goes to a job's society account
  • buyfrom: a supplier only one job can use, paid from that job's society account
  • Dynamic prices: flat (+$ per item bought) or percent (+% per item), per player or shared
  • Cart shows weight / free slots before buying (when the inventory can report them)
  • Server-side checks: distance to the store, job access, prices always come from the config, quantities are capped, items that can't be carried are refunded
  • Database table is created automatically

Requirements

ResourceRequired
ox_lib (opens in a new tab)Yes
oxmysql (opens in a new tab)Yes
A framework (qb-core / qbx_core / es_extended)Yes
An inventoryYes – ox_inventory, qb-inventory, qs-inventory or the framework's own (others: bridge/inventory/server.lua)
A target scriptOptional – falls back to a built-in "press E" prompt
A society / banking scriptOnly for buyfrom / sellto stores (see Config.Bridge.Society)

Last updated