Letzte für heute

This commit is contained in:
VegaZ
2021-04-09 01:10:21 +02:00
parent 1dd5a1a004
commit 8476b112ed

View File

@@ -428,8 +428,19 @@ export default function factionInteraction(globalData: IGlobalData) {
mp.events.add('updateHealCheckpoint', (xPos, yPos, zPos) => {
if (activeTask && activeTask.Type == 1) {
activeCheckpoint.setCoords(xPos, yPos, zPos, false, false, false, false);
mp.game.ui.setNewWaypoint(xPos, yPos);
if (activeCheckpoint && mp.checkpoints.exists(activeCheckpoint)) {
activeCheckpoint.destroy();
activeCheckpoint = mp.checkpoints.new(4, new mp.Vector3(xPos, yPos, zPos - 2), 3.0,
{
color: [255, 0, 0, 150],
visible: true,
dimension: 0
});
mp.game.ui.setNewWaypoint(xPos, yPos);
taskFinish.x = xPos;
taskFinish.y = yPos;
taskFinish.z = zPos;
}
}
});