Skip to content

Commit

Permalink
Merge pull request #10 from vanadis1/patch-2
Browse files Browse the repository at this point in the history
Issue #9 problem fix.
  • Loading branch information
GhzGarage authored Jul 14, 2022
2 parents 1c26c80 + e845ed5 commit a51d021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/interactions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ RegisterNetEvent('police:client:GetCuffed', function(playerId, isSoftcuff)
isHandcuffed = true
TriggerServerEvent("police:server:SetHandcuffStatus", true)
ClearPedTasksImmediately(ped)
if GetSelectedPedWeapon(ped) ~= `WEAPON_UNARMED` then
if Citizen.InvokeNative(0x8425C5F057012DAB,ped) ~= GetHashKey("WEAPON_UNARMED") then
SetCurrentPedWeapon(ped, `WEAPON_UNARMED`, true)
end
if not isSoftcuff then
Expand Down Expand Up @@ -415,4 +415,4 @@ CreateThread(function()
Wait(2000)
end
end
end)
end)

0 comments on commit a51d021

Please sign in to comment.