Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- HOLD WEAPON HOLSTER ANIMATION --
- Citizen.CreateThread( function()
- while true do
- Citizen.Wait( 0 )
- local ped = PlayerPedId()
- if DoesEntityExist( ped ) and not IsEntityDead( ped ) and not IsPedInAnyVehicle(PlayerPedId(), true) and CheckSkin(ped) then
- DisableControlAction( 0, 20, true ) -- INPUT_MULTIPLAYER_INFO (Z)
- if not IsPauseMenuActive() then
- loadAnimDict( "reaction@intimidation@cop@unarmed" )
- if IsDisabledControlJustReleased( 0, 20 ) then -- INPUT_MULTIPLAYER_INFO (Z)
- ClearPedTasks(ped)
- SetEnableHandcuffs(ped, false)
- SetCurrentPedWeapon(ped, GetHashKey("WEAPON_UNARMED"), true)
- else
- if IsDisabledControlJustPressed( 0, 20 ) and CheckSkin(ped) then -- INPUT_MULTIPLAYER_INFO (Z)
- SetEnableHandcuffs(ped, true)
- SetCurrentPedWeapon(ped, GetHashKey("WEAPON_UNARMED"), true)
- TaskPlayAnim(ped, "reaction@intimidation@cop@unarmed", "intro", 8.0, 2.0, -1, 50, 2.0, 0, 0, 0 )
- end
- if IsEntityPlayingAnim(GetPlayerPed(PlayerId()), "reaction@intimidation@cop@unarmed", "intro", 3) then
- DisableActions(ped)
- end
- end
- end
- end
- end
- end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement