Hi. Im currently working on a ESX Police Shop script. I want to whitelist the ESX police job for my Shop. I tryed a lot but it didn’t work for me. Can someone pls help me with that ?
My script i tryed (but failed to work):
Citizen.CreateThread(function()
while true do
Citizen.Wait(10)
if CurrentAction == nil then
Citizen.Wait(500)
else
ESX.ShowHelpNotification(CurrentActionMsg)
if IsControlJustReleased(0, Keys['E']) then
if CurrentAction == 'shop_menu' then
if Config.PoliceJobEnable then
if xPlayer.job.name == 'police' then
OpenShopMenu()
else
ESX.ShowNotification(_U('not_a_cop'))
end
Citizen.CreateThread(function()
while true do
Citizen.Wait(10)
if CurrentAction == nil then
Citizen.Wait(500)
else
ESX.ShowHelpNotification(CurrentActionMsg)
if IsControlJustReleased(0, Keys['E']) then
if CurrentAction == 'shop_menu' then
if Config.PoliceJobEnable then
if ESX.PlayerData.job.name == 'police' then
OpenShopMenu()
else
ESX.ShowNotification(_U('not_a_cop'))
end
is there someone that can help me with the esx_policejob cause I am tryin to fix the salary for cops and ems and the mechanic jobs you can pm me on discord atvman97#1997