Anyone know how to get the police shop working? I’ve got it show up but doesn’t function! This shop.lua functions but doesn’t show menu
if IsInPoliceShopZone(coords) then
if ESX.GetPlayerData().job.name == police then
if IsControlJustReleased(0, Keys[“E”]) then
OpenShopInv(“policeshop”)
Citizen.Wait(2000)
end
end
end
this shop.lua is correct but breaks the lua and no shops work
if IsInPoliceShopZone(coords) then
if ESX.GetPlayerData().job.name == police then
if IsControlJustReleased(0, Keys[“E”]) then
if Licenses[‘weapon’] ~= nil then
OpenShopInv(“policeshop”)
Citizen.Wait(2000)
else
exports[‘mythic_notify’]:DoHudText(‘error’, ‘You need a Fire Arms license before you can buy weapons’)
end
end
end
Anyone know how to get the police shop working? I’ve got it show up but doesn’t function! This shop.lua functions but doesn’t show menu
if IsInPoliceShopZone(coords) then
if ESX.GetPlayerData().job.name == police then
if IsControlJustReleased(0, Keys[“E”]) then
OpenShopInv(“policeshop”)
Citizen.Wait(2000)
end
end
end
this shop.lua is correct but breaks the lua and no shops work
if IsInPoliceShopZone(coords) then
if ESX.GetPlayerData().job.name == police then
if IsControlJustReleased(0, Keys[“E”]) then
if Licenses[‘weapon’] ~= nil then
OpenShopInv(“policeshop”)
Citizen.Wait(2000)
else
exports[‘mythic_notify’]:DoHudText(‘error’, ‘You need a Fire Arms license before you can buy weapons’)
end
end
end