BCS Gunstore
This is an AI slop for testing, but I am able to further improve this script if you would like to request a feature you can do so in the GitHub.
Ownable gun stores for FiveM, fully integrated with ox_inventory. Browsing and
buying happens inside the native ox_inventory shop UI β there is no standalone NUI.
Stores can be created/edited/deleted in-game by admins, purchased by players, and
managed by their owners (stock, prices, name, blip).
Features
Native ox_inventory shop β players browse stock and buy weapons/ammo in the
normal inventory shop window, with live stock counts.
Ownable β any player can buy an unowned store; admins can also hand ownership
to a player directly.
Sell back to the system β owners can sell their store back for a configurable
percentage of its price (Config.resellPercent); it returns to the for-sale pool.
NPC or point target β a storeβs target can be a spawned ped (any
ped model) or a plain
point. Set/clear the ped per store at any time.
Raycast placement preview β placing or moving a store shows a live preview at
your crosshair: a transparent ghost ped (or a ground marker) you can rotate
(arrow keys / mouse wheel) and confirm with E.
In-game admin editor (CRUD) β create stores with the placement tool, edit
settings/owner/blip/ped, move them, or delete them.
Dynamic wholesale stock prices β when system restocking is on, owners pay
per unit to restock. Admins set a per-item wholesale price (stored in the DB, shared
by all stores) in/gunstore; unset items useConfig.defaultStockPrice. Stops
owners restocking for free.
In-game owner manager β stock up, set per-item prices, restock, rename the
store (the blip name follows the store name), change the blip color/sprite/scale,
withdraw earnings, and sell the store back.
Revenue routing β every sale credits the storeβs balance, which the owner
withdraws. Stock is persisted to the database.
Framework bridge β works on Qbox (qbx), QBCore (qb) and ESX
(auto-detected). Add more frameworks underbridge/.
Dependencies
- ox_lib
- ox_inventory
- oxmysql
- ox_target (optional β falls back to a
marker + keypress if not present; toggle withConfig.useTarget)
Preview
Download here
Checkout My Tebex https://baguscodestudio.com/
My Other Works
| Code is accessible | Yes |
| Subscription-based | No |
| Lines (approximately) | 300+ |
| Requirements | oxmysql, ox_lib |
| Support | In Github only |


















