Advertisement
Guest User

1

a guest
Mar 21st, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Citizen.CreateThread(function()
  2. local dict = "anim@mp_player_intuppersalute"
  3.  
  4. RequestAnimDict(dict)
  5. while not HasAnimDictLoaded(dict) do
  6. Citizen.Wait(100)
  7. end
  8. local handsup = false
  9. while true do
  10. Citizen.Wait(0)
  11. if IsControlJustPressed(1, 70) then --Start holding g
  12. if not handsup then
  13. TaskPlayAnim(GetPlayerPed(-1), dict, "idle_a", 8.0, 8.0, -1, 50, 0, false, false, false)
  14. handsup = true
  15. else
  16. handsup = false
  17. ClearPedTasks(GetPlayerPed(-1))
  18. end
  19. end
  20. end
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement