- QBCore based shops system
- Written from scratch by me, but based on
qb-shops
andqb-menu
If you think I did a good job here, consider donating as it keeps by lights on and my cat fat/floofy:
https://ko-fi.com/jixelpatterns
- This script is designed to be a replacement for
QB-Shops
- Making shops work perfectly with
QB-Menu
,QB-Input
andQB-Target
- I always recommend starting my scripts AFTER
[qb]
not inside it as it can mess with any dependancies on server load - I have a separate folder called
[jim]
(that is also in the resources folder) that starts WAY after everything else. - This ensure's it has everything it requires before trying to load
- Example of my load order:
# QBCore & Extra stuff
ensure qb-core
ensure [qb]
ensure [standalone]
ensure [voice]
ensure [defaultmaps]
ensure [vehicles]
# Extra Jim Stuff
ensure [jim]
- Supports items that require jobs
- Supports Gun License being required for weapons
- Support for opening shops externally
- Ability to choose and spawn shop peds
- Stash Support, adds ability to limit purchases between restarts
- Ability to hide blips for shops, might be useful for a blackmarket shop
- Support for casino buying and selling of chips
- Everything needed is in
config.lua
and its essentially the same as qb-shop's config. Limit
Enable this to add Stash features, This adds limits to items in stores and gets refilled at each restartMaxSlots
Set this to your player inventory slot count, this is default "41"BlackMarket
Enable to add blackmarket locations (defined at the bottom of this file)Measurement
Custom Weight measurement, default "kg"Gabz247
Enable if using gabz 247 storesGabzAmmu
Enable if using gabz Ammunation storesVendOverride
-- Enable this if you want all the vending machines to use this scriptRandomAmount
-- Sets wether a stash should have a "random" amount of stock or full.
- Example of a
shop
Config.Locations = {
["digitalden"] = { -- general name of the shops
["label"] = "Digital Den", -- The label of the shop that will be seen by players
["targetIcon"] = "fab fa-galactic-republic", -- Custom qb-target icon (default: "fas fa-cash-register")
["targetLabel"] = "Open Digital Den", -- Custom qb-target label (default: "Browse Shop")