Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/eventhandlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down