Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
1,215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. Citizen.CreateThread(function()
  2. while true do
  3. Citizen.Wait(1)
  4. local playerPed = PlayerPedId()
  5.  
  6. if IsHandcuffed then
  7. DisableControlAction(2, 24, true) -- Attack
  8. DisableControlAction(2, 257, true) -- Attack 2
  9. DisableControlAction(2, 25, true) -- Aim
  10. DisableControlAction(2, 263, true) -- Melee Attack 1
  11. DisableControlAction(2, Keys['R'], true) -- Reload
  12. DisableControlAction(2, Keys['SPACE'], true) -- Jump
  13. DisableControlAction(2, Keys['Q'], true) -- Cover
  14. DisableControlAction(2, Keys['TAB'], true) -- Select Weapon
  15. DisableControlAction(2, Keys['F'], true) -- Also 'enter'?
  16. DisableControlAction(2, Keys['F1'], true) -- Disable phone
  17. DisableControlAction(2, Keys['F2'], true) -- Inventory
  18. DisableControlAction(2, Keys['F3'], true) -- Animations
  19. DisableControlAction(2, Keys['X'], true) -- Disable clearing animation
  20. DisableControlAction(2, Keys['P'], true) -- Disable pause screen
  21. DisableControlAction(2, 59, true) -- Disable steering in vehicle
  22. DisableControlAction(2, Keys['LEFTCTRL'], true) -- Disable going stealth
  23. DisableControlAction(0, 47, true) -- Disable weapon
  24. DisableControlAction(0, 264, true) -- Disable melee
  25. DisableControlAction(0, 257, true) -- Disable melee
  26. DisableControlAction(0, 140, true) -- Disable melee
  27. DisableControlAction(0, 141, true) -- Disable melee
  28. DisableControlAction(0, 142, true) -- Disable melee
  29. DisableControlAction(0, 143, true) -- Disable melee
  30. DisableControlAction(0, 75, true) -- Disable exit vehicle
  31. DisableControlAction(27, 75, true) -- Disable exit vehicle
  32. if not (IsEntityPlayingAnim(playerPed, 'mp_arresting', 'idle', 3) == 1) then
  33. ESX.Streaming.RequestAnimDict('mp_arresting', function()
  34. TaskPlayAnim(playerPed, 'mp_arresting', 'idle', 8.0, -8, -1, 49, 0, 0, 0, 0)
  35. end)
  36. end
  37. else
  38. Citizen.Wait(500)
  39. end
  40. end
  41. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement