Skip to content
Open
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
14 changes: 7 additions & 7 deletions client.lua
Original file line number Diff line number Diff line change
@@ -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)