From 2ae9eedb619f0ac2601a0080238806b6d1509b8e Mon Sep 17 00:00:00 2001 From: MoskalykA <100430077+MoskalykA@users.noreply.github.com> Date: Thu, 21 Dec 2023 20:17:00 +0100 Subject: [PATCH] refactor: small optimization --- client/eventhandlers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/eventhandlers.lua b/client/eventhandlers.lua index d740832e..1fc24bcd 100644 --- a/client/eventhandlers.lua +++ b/client/eventhandlers.lua @@ -30,7 +30,7 @@ end ---@return boolean | Returns true if the ped is holding a whitelisted gun local function BlacklistedWeapon(ped) for i = 1, #Config.WeaponWhitelist do - local weaponHash = GetHashKey(Config.WeaponWhitelist[i]) + local weaponHash = joaat(Config.WeaponWhitelist[i]) if GetSelectedPedWeapon(ped) == weaponHash then return true -- Is a whitelisted weapon end