From c2cecaa1ec0d92e1ce7ea3119a12c6382d580db9 Mon Sep 17 00:00:00 2001 From: Mrlion Date: Thu, 22 Aug 2024 20:14:58 +0200 Subject: [PATCH] Update config.lua --- config.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.lua b/config.lua index a7588e8..15b19e4 100644 --- a/config.lua +++ b/config.lua @@ -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)