ESX_Policejob Not Disabling Controls


#1

Alright, So I know I saw it somewhere on the forums here and somewhere I had it previously working on a older version I had of my script but I had to replace it as I broke something LOL as we all end up doing at some point so I rolled it back and had a version that doesnt disable the controls I believe I have it done correctly

-- Handcuff
Citizen.CreateThread(function()
  while true do
    Wait(0)
    if IsHandcuffed then
      DisableControlAction(0, 142, true) -- MeleeAttackAlternate 170
      DisableControlAction(0, 30,  true) -- MoveLeftRight
      DisableControlAction(0, 31,  true) -- MoveUpDown
      DisableControlAction(0, 170, true)
      DisableControlAction(0, 167, true)
      DisableControlAction(0, 5, true)
      DisableControlAction(0, 6, true)
      DisableControlAction(0, 45, true)
      DisableControlAction(0, 142, true)
      DisableControlAction(0, 141, true)
      DisableControlAction(0, 140, true)
      DisableControlAction(0, 263, true)
      DisableControlAction(0, 264, true)
    end
  end
end)

But they can still enter cars and throw punched and also go into a fighting stance which I do not want I thought I covered everything but again they can still do these things


#2

This is correct right?
:thinking::thinking::thinking::thinking::thinking: