[QB-ESX][PAID] AFK Shop Management System

This script allows you to create an NPC via config, allowing a store owner or gang leader to put items into an NPC shop that persists reboots/restarts.

It’s very customizable via config and supports:
Choosing NPC model
Setting coords for NPC
Job/gang permissions with job name and grades
Target Name
Item whitelist settings (or allow any item to be added)
Custom pricing chosen by the store manager
NPC Animations with timers and delays
Multi-language support via locales file
Persists server reboots using sql
Allows the manager to collect money from the NPC

Screenshot:

Works with qbcore and esx
Works with qb-inventory, esx and tgiann-inventory

Introductory pricing active
– EDIT –
Store isn’t online yet.

Code is accessible No
Subscription-based No
Lines (approximately) 1300
Requirements oxlib/oxsql
Support Yes

The link to the Tebex store is not working

Looks like my store isn’t fully approved yet and I jumped the gun. I’ll repost later. Thank you for the comment!

1 Like

So is the shop just like how ox_inventory shops works where you just press 3 open menu. But instead its just npc instead of floating blip?

Not exactly.
Basically with this, you create an NPC at a location, then give ownership of that NPC to a job/job grade.
Then you can either restrict what they add to the shop via whitelisted items, or let them add whatever they want to the shop if you don’t want to use the whitelist.

It works like this as an example:
Create an NPC in a store (burgershot for example)
Give ownership in cfg to burgershot and grade selection to 3, 4 (manager and owner)
Choose to not use whitelist for items

In game, the manager or owner of burgershot can now “stock” ANYTHING they want from their inventory into the NPC at whatever price they choose.

Random people can then go to burgershot, browse a list of items for sale and buy those items.
Items bought will “store” the money in the NPC’s “inventory”

Now the manager of the owner of burgershot can go collect that money at some point later.

When the NPC is out of items, he’s just out of items and it will have to be restocked by the player.

So just a inventory system with extra steps that requires people restock it got it. Compared to shops script where its set in config

It’s a bit like an inventory system, but with extra steps. The main idea is that it’s like having an employee without having an actual player working the shop/store.

It also functions essentially like a gang stash, where the gang leadership could make their lower level gang members buy their weapons/items from the gang and prevent access to the gang stash. Sort of a division of permissions.