Advertisement
Guest User

Untitled

a guest
May 24th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. -- HOLD WEAPON HOLSTER ANIMATION --
  2.  
  3. Citizen.CreateThread( function()
  4. while true do
  5. Citizen.Wait( 0 )
  6. local ped = PlayerPedId()
  7. if DoesEntityExist( ped ) and not IsEntityDead( ped ) and not IsPedInAnyVehicle(PlayerPedId(), true) and CheckSkin(ped) then
  8. DisableControlAction( 0, 20, true ) -- INPUT_MULTIPLAYER_INFO (Z)
  9. if not IsPauseMenuActive() then
  10. loadAnimDict( "reaction@intimidation@cop@unarmed" )
  11. if IsDisabledControlJustReleased( 0, 20 ) then -- INPUT_MULTIPLAYER_INFO (Z)
  12. ClearPedTasks(ped)
  13. SetEnableHandcuffs(ped, false)
  14. SetCurrentPedWeapon(ped, GetHashKey("WEAPON_UNARMED"), true)
  15. else
  16. if IsDisabledControlJustPressed( 0, 20 ) and CheckSkin(ped) then -- INPUT_MULTIPLAYER_INFO (Z)
  17. SetEnableHandcuffs(ped, true)
  18. SetCurrentPedWeapon(ped, GetHashKey("WEAPON_UNARMED"), true)
  19. TaskPlayAnim(ped, "reaction@intimidation@cop@unarmed", "intro", 8.0, 2.0, -1, 50, 2.0, 0, 0, 0 )
  20. end
  21. if IsEntityPlayingAnim(GetPlayerPed(PlayerId()), "reaction@intimidation@cop@unarmed", "intro", 3) then
  22. DisableActions(ped)
  23. end
  24. end
  25. end
  26. end
  27. end
  28. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement