-- clientside use
TriggerEvent("b-clothing:openShop", 1, false) -- if you don't want to use the clothing blacklist
TriggerEvent("b-clothing:openShop", 1, true) -- if you want to use on this store the clothing blacklist
-- serverside use
TriggerClientEvent("b-clothing:openShop", 1, false) -- if you don't want to use the clothing blacklist
TriggerClientEvent("b-clothing:openShop", 1, true) -- if you want to use on this store the clothing blacklist
Parameter
Example
ShopIndex
number
1
useBlacklist
boolean
true | false
Extra note to the ShopIndex:
The ShopIndex must be valid for example:
TriggerEvent("b-clothing:openShop", 3, false)
{
pos = vector3(72.3, -1399.1, 28.4),
useblip = false, -- make this on false if you want to disable the blip
heading = 0.0,
blipSprite = 73,
blipName = "Clothingstore",
-- clothes = {} -- add clothes here the same as in BDEV.DefaultClothes if you want to
},
{
pos = vector3(-703.8, -152.3, 36.4),
heading = 0.0,
useblip = true,
blipSprite = 73,
blipName = "Clothingstore",
},
This would cause a error cuz the index don't have 3 entries.
This would work if the BDEV.Shops Array would look like this
{
pos = vector3(72.3, -1399.1, 28.4),
useblip = false, -- make this on false if you want to disable the blip
heading = 0.0,
blipSprite = 73,
blipName = "Clothingstore",
-- clothes = {} -- add clothes here the same as in BDEV.DefaultClothes if you want to
},
{
pos = vector3(-703.8, -152.3, 36.4),
heading = 0.0,
useblip = true,
blipSprite = 73,
blipName = "Clothingstore",
},
{
pos = vector3(-703.8, -152.3, 36.4),
heading = 0.0,
useblip = true,
blipSprite = 73,
blipName = "Clothingstore",
},