Skip to content

Police Shop issue #7

@GatorTank2123

Description

@GatorTank2123

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions