fix: esx_policejob: wrong validation

This commit is contained in:
Mycroft
2022-09-02 13:41:50 +01:00
parent 5ca3b9f28e
commit 576f4557a6
+1 -1
View File
@@ -1453,7 +1453,7 @@ ESX.RegisterInput("police:interact", "(ESX PoliceJob) Interact", "keyboard", "E"
end)
ESX.RegisterInput("police:quickactions", "(ESX PoliceJob) Quick Actions", "keyboard", "F6", function()
if not ESX.PlayerData.job or (ESX.PlayerData.job and not ESX.PlayerData.job.name == 'police') or isDead then
if not ESX.PlayerData.job or (ESX.PlayerData.job.name ~= 'police') or isDead then
return
end