Citizen.CreateThread(function()
while not ESXLoaded do
Citizen.Wait(10)
end
for k, v in pairs(Config.Shops) do
for val, coords in pairs(v.coords) do
local marker = {
name = k .. val,
coords = coords,
type = v.markerType or 1,
colour = v.markerColour or { r = 55, b = 255, g = 55 },
size = v.size or vector3(1.7, 1.7, 1.0),
if Level >= exports.esx_xp:ESXP_GetRank() then
action = function()
shopSecondaryInventory.owner = k
openInventory(shopSecondaryInventory)
end,
shouldDraw = function()
return ESX.PlayerData.job.name == v.job or v.job == 'all'
end,
msg = v.msg or _U('keyshop'),
}
TriggerEvent('disc-base:registerMarker', marker)
end
end
end
end)