Letzte für heute
This commit is contained in:
@@ -428,8 +428,19 @@ export default function factionInteraction(globalData: IGlobalData) {
|
|||||||
|
|
||||||
mp.events.add('updateHealCheckpoint', (xPos, yPos, zPos) => {
|
mp.events.add('updateHealCheckpoint', (xPos, yPos, zPos) => {
|
||||||
if (activeTask && activeTask.Type == 1) {
|
if (activeTask && activeTask.Type == 1) {
|
||||||
activeCheckpoint.setCoords(xPos, yPos, zPos, false, false, false, false);
|
if (activeCheckpoint && mp.checkpoints.exists(activeCheckpoint)) {
|
||||||
mp.game.ui.setNewWaypoint(xPos, yPos);
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user