GangwarFix zweiter Tag 6

This commit is contained in:
VegaZ
2021-03-30 20:42:32 +02:00
parent 9d8bcf11e7
commit d164593a2a

View File

@@ -460,8 +460,14 @@
var x = 0;
var y = 0;
var z = 0;
var n = 0;
let last_blip = mp.game.invoke(Natives.GET_FIRST_BLIP_INFO_ID, 5);
gangturfs.forEach(function (turf) {
mp.game.invoke(Natives.REMOVE_BLIP, turf.blip);
n++;
});
while (mp.game.invoke(Natives.DOES_BLIP_EXIST, last_blip)) {
mp.game.invoke(Natives.SET_BLIP_SPRITE, last_blip, -1);
mp.game.invoke(Natives.REMOVE_BLIP, last_blip, -1);
@@ -492,7 +498,7 @@
z++
}
mp.gui.chat.push("DEBUG: Turf blips not removed: " + x);
mp.gui.chat.push("DEBUG: Turf blips not removed: " + x + " / " + n);
mp.gui.chat.push("DEBUG: Attack blips not removed: " + y);
mp.gui.chat.push("DEBUG: LeaderBlips blips not removed: " + z);
}