From 576f4557a6e90f64317bd96b558dd4fbef6fa636 Mon Sep 17 00:00:00 2001 From: Mycroft Date: Fri, 2 Sep 2022 13:41:50 +0100 Subject: [PATCH] fix: esx_policejob: wrong validation --- [esx_addons]/esx_policejob/client/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[esx_addons]/esx_policejob/client/main.lua b/[esx_addons]/esx_policejob/client/main.lua index 94b5f088..1c75991c 100644 --- a/[esx_addons]/esx_policejob/client/main.lua +++ b/[esx_addons]/esx_policejob/client/main.lua @@ -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