Fix Count Duty Medics

This commit is contained in:
VegaZ
2021-02-05 20:29:06 +01:00
parent 3f59982855
commit 466ab4cc63
6 changed files with 23 additions and 29 deletions

View File

@@ -26,6 +26,7 @@ export default function factionInteraction(globalData: IGlobalData) {
var rangeLeft;
var sortText;
var deadRespawned = false;
var isRevived = false;
var ticketName: string;
var pointsName: string;
@@ -482,6 +483,9 @@ export default function factionInteraction(globalData: IGlobalData) {
mp.events.callRemote("delReviveTask");
mp.events.callRemote("payCutMedicEarnings");
deadRespawned = false;
} else {
activeTask = false;
activeCheckpoint.destroy();
}
});
@@ -504,10 +508,7 @@ export default function factionInteraction(globalData: IGlobalData) {
mp.game.graphics.drawSprite("medicimages", "ambulance", ambulanceImagePos + 0.01, 0.915, 0.04, 0.07, 0, 255, 255, 255, 255);
} else {
mp.game.graphics.drawSprite("medicimages", "running", ambulanceImagePos + 0.02, 0.915, 0.02, 0.035, 0, 255, 0, 0, 255);
}
} else {
activeTask = false;
activeCheckpoint.destroy();
}
}
}
});