Fix destroy Checkpoint Medic
This commit is contained in:
@@ -469,11 +469,13 @@ export default function factionInteraction(globalData: IGlobalData) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
mp.events.add("destroyMedicTaskCheckpoint", () => {
|
mp.events.add("destroyMedicTaskCheckpoint", () => {
|
||||||
activeCheckpoint.destroy();
|
if (activeCheckpoint) {
|
||||||
activeCheckpoint = null;
|
activeCheckpoint.destroy();
|
||||||
activeTask = null;
|
activeCheckpoint = null;
|
||||||
timeLeft = null;
|
activeTask = null;
|
||||||
mp.events.callRemote("MedicTaskTimeout");
|
timeLeft = null;
|
||||||
|
mp.events.callRemote("MedicTaskTimeout");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
mp.events.add('playerEnterCheckpoint', (activeCheckpoint) => {
|
mp.events.add('playerEnterCheckpoint', (activeCheckpoint) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user