qb-shops
Ya'll got doritos?
Last updated
Ya'll got doritos?
Last updated
Works in conjunction with to let players buy items
Includes delivery system for players to earn money while refilling stock of shop
Options highlighted in yellow are optional!
You can define a table of items inside a unique product list with multiple options available. The index of our table of items will be our unique product list name that we can use later so make sure to keep them different! Let's go over what needs to be included in our product list
product list: string
name: string
amount: number
info: table
requiredJob: table | string
requiredGang: table | string
requiredGrade: number
requiredLicense: table | string
When using a table for requirements, they are EITHER/OR and not both. So if we add police and ambulance as requirements, you will not need both jobs, only one of them!
You can define a list of shops which are indexed by a unique identifier. These identifier's must be different because it allows for the restocking of the shop if it's set to true.
label: string
products: table
coords: vector
delivery: vector
ped: string
scenario: string
radius: float
targetIcon: string
targetLabel: string
showblip: boolean
blipsprite: number
blipscale: float
blipcolor: number
radius: float
useStock: boolean
requiredJob: string | table
requiredGang: string | table
requiredItem: string | table
Example:
When setting requiredJob
, requiredGang
or requiredItem
do not use both string and table methods, only choose one!