Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loadAnimDict( "reaction@intimidation@1h" )
- loadAnimDict( "weapons@pistol_1h@gang" )
- if CheckWeapon(ped) then
- if holstered then
- TaskPlayAnim(ped, "reaction@intimidation@1h", "outro", 8.0, 2.0, -1, 48, 2, 0, 0, 0 )
- Citizen.CreateThread( function()
- while holstered do
- Citizen.Wait(0)
- DisablePlayerFiring(GetPlayerPed(-1),true)
- end
- end)
- Citizen.Wait(1200)
- ClearPedTasks(ped)
- holstered = false
- end
- elseif not CheckWeapon(ped) then
- if not holstered then
- TaskPlayAnim(ped, "reaction@intimidation@1h", "intro", 8.0, 2.0, -1, 48, 2, 0, 0, 0 )
- Citizen.CreateThread( function()
- while not holstered do
- Citizen.Wait(0)
- DisablePlayerFiring(GetPlayerPed(-1),true)
- end
- end)
- Citizen.Wait(1200)
- ClearPedTasks(ped)
- holstered = true
- end
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement