Fix Own Heal

This commit is contained in:
VegaZ
2021-04-09 19:45:29 +02:00
parent 63e488bb19
commit 313a329330

View File

@@ -370,7 +370,7 @@ export default function factionInteraction(globalData: IGlobalData) {
healTaskMenuMedic.Close();
factionInteractionMenu.Visible = true;
} else {
if (tasks[index].MedicName === "none" && tasks[index].MedicName != mp.players.local.name) {
if (tasks[index].MedicName === "none" && tasks[index].Victim != mp.players.local.name) {
mp.game.graphics.requestStreamedTextureDict("medicimages", true);
mp.events.callRemote("updateMedicTask", 1, tasks[index].Victim, false);
mp.game.ui.setNewWaypoint(tasks[index].Position.x, tasks[index].Position.y);