Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  2. -- Animacao de Andar e Tossir
  3. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  4.  
  5. Citizen.CreateThread(function()
  6. local dict = "timetable@gardener@smoking_joint"
  7.  
  8. RequestAnimDict(dict)
  9. while not HasAnimDictLoaded(dict) do
  10. Citizen.Wait(100)
  11. end
  12. local handsup = false
  13. while true do
  14. Citizen.Wait(0)
  15. if IsControlJustPressed(1, 244) then --Start holding M
  16. if not handsup then
  17. TaskPlayAnim(GetPlayerPed(-1), dict, "idle_cough", 8.0, 8.0, -1, 50, 0, false, false, false)
  18. handsup = true
  19. else
  20. handsup = false
  21. ClearPedTasks(GetPlayerPed(-1))
  22. end
  23. end
  24. end
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement