
πAdding Shops
['My Cool Shop'] = { -- the key is the shop name
info = {
shopLabel = 'My Cool Shop', -- label used as the shop header
targetIcon = 'fa-solid fa-hand-point-up', -- icon used for target interaction
targetLabel = 'Open Shop', -- label used for target interaction
distance = 2.0, -- max distance for target interaction
scenario = 'WORLD_HUMAN_CLIPBOARD', -- name of scenario used set to nil for nothing
args = { shopType = "My Cool Shop" }, -- args sends the shopType data to the event to determine which inventory shop to open and displays the relevant products available - this must be the same as the key name
},
blips = { -- blip settings for shop
enabled = true, -- blip enabled
id = 52, -- blip id
colour = 2, -- blip colour
scale = 0.6, -- bliip scale
title = 'My Cool Shop', -- blip title
},
models = { -- define random ped models below
'mp_m_securoguard_01',
},
locations = { -- define spawn locations for the vendor must be vector4
vector4(1777.59, 2560.52, 45.62, 187.83),
},
inventory = {
-- define items and their prices below that can be purchased at this particular vendor - ensure these are in your items.lua!
{ name = 'my_cool_item', price = 4, amount = 50 },
{ name = 'my_cool_item_that_requires_a_job', price = 0, amount = 1, requiresJob = {'police', 'bsco', 'leo',}, },
{ name = 'my_cool_item_that_requires_a_job_&_rank', price = 0, amount = 50, requiresJob = {'police', 'bsco', 'leo',}, requiresRank = 1, },
{ name = 'my_cool_item_that_requires_a_license', price = 0, amount = 50, requiresLicense = 'weapon', },
},
},Last updated