With Closed Shops NPC, food workers can put items they make up for public sale, and customers can buy that stock while the workers are offline. A burger shot employee, for example, can stock the shop with burgers from their inventory. Employees can choose a price for each item and revise it whenever they want. Price edits take effect immediately.
Buying while staff are off duty
An NPC ped keeps the store open to customers while employees are off duty. Buyers can shop through a context menu from ox_lib or through the BDUK UI. Players have to supply the goods, so only a finite quantity is available. Sales can provide passive income.
Peds appear and disappear automatically as job activity changes in real time. A ped spawns only once for each job. The reported impact of spawning on performance is minimal.
Managing jobs and stock
The modular shop system handles multiple locations and multiple jobs. You can configure the coordinates for peds, the names of jobs and the inventory items. The config also sets a maximum price for each item.
Admins can inspect and change stock levels and prices for every job from a menu described as having no limits. Each interaction checks the job or admin status. The system also checks distance and tracks every action. You can enable event logging to help prevent exploits.
Required resources and options
Install qb-core, oxmysql and ox_lib. The UI storefront also needs BDUK. Some third-party integrations are experimental.
- Targeting. Use qb-target or ox_target. You can implement support for a different target script yourself.
- Inventory. Choose qb-inventory or ox_inventory, or integrate a different inventory script yourself. The qs-inventory option is experimental and untested.
- Notifications. Options include okokNotify, ox_lib, mythic_notify and qb-core notify. The qs-notify integration is experimental and untested.
Banking scripts
Banking requires a supported script. You can use okokBanking, qb-banking or renewed-banking. Three further integrations have experimental support and have yet to be tested.
wasabi_banking
tgg-banking
fd_banking
