AxisGe0 / gc-inventory

16 stars 18 forks source link

Police Shop issue #7

Open GatorTank2123 opened 3 years ago

GatorTank2123 commented 3 years ago

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