Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local timer = (180-GetEntityHealth(PlayerPedId()))*1000+1000
- exports['mythic_progbar']:ProgressWithStartAndTick({
- name = 'heal_action',
- duration = timer,
- label = 'You are being treated, please wait',
- useWhileDead = false,
- canCancel = true,
- controlDisables = {
- disableMovement = true,
- disableCarMovement = true,
- disableMouse = false,
- disableCombat = true,
- },
- animation = {
- animDict = 'missfbi5ig_0',
- anim = 'lyinginpain_loop_steve',
- flags = 1,
- },
- -- prop = {
- -- model = 'prop_jerrycan_01a',
- -- bone = 60309,
- -- coords = { x = 0.0, y = 0.1, z = 0.5 },
- -- rotation = { x = 364.0, y = 180.0, z = 90.0 },
- -- }
- }, function()
- while GetEntityHealth(PlayerPedId()) < 180 do
- Citizen.Wait(2000)
- SetEntityHealth(PlayerPedId(), GetEntityHealth(PlayerPedId()) + 2)
- end
- TaskPlayAnim(GetPlayerPed(-1), 'anim@gangops@morgue@table@' , 'ko_front' ,8.0, -8.0, -1, 1, 0, false, false, false )
- exports['mythic_notify']:DoHudText('inform', 'You are now healthy')
- InAction = false
- end, function()
- end, function(status)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement