From 9363bdce14666c16d6c81a1c68722af84d0ae4fd Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Tue, 22 May 2018 19:42:11 +0200 Subject: [PATCH] Improved handcuffs, follow #87 --- client/main.lua | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/client/main.lua b/client/main.lua index 663b492d..646df5d7 100644 --- a/client/main.lua +++ b/client/main.lua @@ -1460,12 +1460,18 @@ Citizen.CreateThread(function() while true do Citizen.Wait(10) if IsHandcuffed then - DisableControlAction(0, 142, true) -- MeleeAttackAlternate - DisableControlAction(0, 30, true) -- MoveLeftRight - DisableControlAction(0, 31, true) -- MoveUpDown - DisableControlAction(0, 24, true) -- Shoot - DisableControlAction(0, 92, true) -- Shoot in car - DisableControlAction(0, 75, true) -- Leave Vehicle + DisableControlAction(2, 24, true) -- Attack + DisableControlAction(2, 257, true) -- Attack 2 + DisableControlAction(2, 25, true) -- Aim + DisableControlAction(2, 263, true) -- Melee Attack 1 + DisableControlAction(2, Keys['R'], true) -- Reload + DisableControlAction(2, Keys['TOP'], true) -- Open phone (not needed?) + DisableControlAction(2, Keys['SPACE'], true) -- Jump + DisableControlAction(2, Keys['Q'], true) -- Cover + DisableControlAction(2, Keys['TAB'], true) -- Select Weapon + DisableControlAction(2, Keys['F'], true) -- Also 'enter'? + else + Citizen.Wait(1000) end end end)