Skip to content

Commit

Permalink
Update config.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
L0stedMrlion authored Aug 22, 2024
1 parent 23744db commit c2cecaa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ Config.HealingTarget = {
local health = GetEntityHealth(closestPlayerPed)
local maxHealth = GetEntityMaxHealth(closestPlayerPed)

if IsEntityDead(closestPlayerPed) then
Notify("Medibag", locale("deathplayer"), "fa-solid fa-skull", "#ed1b24", 2500)
return
end

if health < maxHealth then
TaskStartScenarioInPlace(playerPed, 'CODE_HUMAN_MEDIC_TEND_TO_DEAD', 0, true)
Wait(6000)
Expand Down

0 comments on commit c2cecaa

Please sign in to comment.