Skip to content

QBCore QB-Menu based replacement for qb-shops

Notifications You must be signed in to change notification settings

FlexBuf/jim-shops

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jim-shops

  • QBCore based shops system
  • Written from scratch by me, but based on qb-shops and qb-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 and QB-Target

Installation

  • 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]

Features

  • 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

Setup a new shop

  • 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 restart
  • MaxSlots 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 stores
  • GabzAmmu Enable if using gabz Ammunation stores
  • VendOverride -- Enable this if you want all the vending machines to use this script
  • RandomAmount -- Sets wether a stash should have a "random" amount of stock or full.

Examples and Explanations

  • 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")