Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Citizen.CreateThread(function()
- while true do
- Citizen.Wait(1)
- local playerPed = PlayerPedId()
- if IsHandcuffed then
- 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['SPACE'], true) -- Jump
- DisableControlAction(2, Keys['Q'], true) -- Cover
- DisableControlAction(2, Keys['TAB'], true) -- Select Weapon
- DisableControlAction(2, Keys['F'], true) -- Also 'enter'?
- DisableControlAction(2, Keys['F1'], true) -- Disable phone
- DisableControlAction(2, Keys['F2'], true) -- Inventory
- DisableControlAction(2, Keys['F3'], true) -- Animations
- DisableControlAction(2, Keys['X'], true) -- Disable clearing animation
- DisableControlAction(2, Keys['P'], true) -- Disable pause screen
- DisableControlAction(2, 59, true) -- Disable steering in vehicle
- DisableControlAction(2, Keys['LEFTCTRL'], true) -- Disable going stealth
- DisableControlAction(0, 47, true) -- Disable weapon
- DisableControlAction(0, 264, true) -- Disable melee
- DisableControlAction(0, 257, true) -- Disable melee
- DisableControlAction(0, 140, true) -- Disable melee
- DisableControlAction(0, 141, true) -- Disable melee
- DisableControlAction(0, 142, true) -- Disable melee
- DisableControlAction(0, 143, true) -- Disable melee
- DisableControlAction(0, 75, true) -- Disable exit vehicle
- DisableControlAction(27, 75, true) -- Disable exit vehicle
- if not (IsEntityPlayingAnim(playerPed, 'mp_arresting', 'idle', 3) == 1) then
- ESX.Streaming.RequestAnimDict('mp_arresting', function()
- TaskPlayAnim(playerPed, 'mp_arresting', 'idle', 8.0, -8, -1, 49, 0, 0, 0, 0)
- end)
- end
- else
- Citizen.Wait(500)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement