diff --git a/ReallifeGamemode.Client/util/Gangwar.ts b/ReallifeGamemode.Client/util/Gangwar.ts index 78829f5a..56316ed8 100644 --- a/ReallifeGamemode.Client/util/Gangwar.ts +++ b/ReallifeGamemode.Client/util/Gangwar.ts @@ -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); }