diff --git a/client.lua b/client.lua index cecd13e..773388e 100644 --- a/client.lua +++ b/client.lua @@ -1,8 +1,8 @@ -Citizen.CreateThread(function() - while true do - Citizen.Wait(0) - if IsPedArmed(GetPlayerPed(-1), 4 | 2) and IsControlPressed(0, 25) then - DisableControlAction(0, 22, true) - end - end +CreateThread(function() + while true do + Wait(0) + if IsPedArmed(PlayerPedId(), 4 | 2) and IsControlPressed(0, 25) then + DisableControlAction(0, 22, true) + end + end end)