Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. local timer = (180-GetEntityHealth(PlayerPedId()))*1000+1000
  2. exports['mythic_progbar']:ProgressWithStartAndTick({
  3. name = 'heal_action',
  4. duration = timer,
  5. label = 'You are being treated, please wait',
  6. useWhileDead = false,
  7. canCancel = true,
  8. controlDisables = {
  9. disableMovement = true,
  10. disableCarMovement = true,
  11. disableMouse = false,
  12. disableCombat = true,
  13. },
  14. animation = {
  15. animDict = 'missfbi5ig_0',
  16. anim = 'lyinginpain_loop_steve',
  17. flags = 1,
  18. },
  19. -- prop = {
  20. -- model = 'prop_jerrycan_01a',
  21. -- bone = 60309,
  22. -- coords = { x = 0.0, y = 0.1, z = 0.5 },
  23. -- rotation = { x = 364.0, y = 180.0, z = 90.0 },
  24. -- }
  25. }, function()
  26. while GetEntityHealth(PlayerPedId()) < 180 do
  27. Citizen.Wait(2000)
  28. SetEntityHealth(PlayerPedId(), GetEntityHealth(PlayerPedId()) + 2)
  29. end
  30. TaskPlayAnim(GetPlayerPed(-1), 'anim@gangops@morgue@table@' , 'ko_front' ,8.0, -8.0, -1, 1, 0, false, false, false )
  31. exports['mythic_notify']:DoHudText('inform', 'You are now healthy')
  32. InAction = false
  33.  
  34. end, function()
  35.  
  36. end, function(status)
  37.  
  38. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement