diff --git a/ReallifeGamemode.Client/util/Gangwar.ts b/ReallifeGamemode.Client/util/Gangwar.ts index 230530bd..fa05f542 100644 --- a/ReallifeGamemode.Client/util/Gangwar.ts +++ b/ReallifeGamemode.Client/util/Gangwar.ts @@ -29,7 +29,8 @@ GET_NEXT_BLIP_INFO_ID: "0x14F96AA50D6FBEA7", DOES_BLIP_EXIST: "0xA6DB27D19ECBB7DA", SET_BLIP_COORDS: "0xAE2AF67E9D9AF65D", - SET_BLIP_FLASH_INTERVAL: "0xAA51DB313C010A7E" + SET_BLIP_FLASH_INTERVAL: "0xAA51DB313C010A7E", + REMOVE_BLIP: "0x86A652570E5F25DD" }; var Gangturf = class { @@ -458,7 +459,8 @@ while (mp.game.invoke(Natives.DOES_BLIP_EXIST, last_blip)) { mp.game.invoke(Natives.SET_BLIP_SPRITE, last_blip, -1); - mp.game.ui.removeBlip(last_blip); + mp.game.invoke(Natives.REMOVE_BLIP, last_blip); + mp.game.ui.removeBlip(last_blip); last_blip = mp.game.invoke(Natives.GET_NEXT_BLIP_INFO_ID, 5); x++; } @@ -509,10 +511,9 @@ if (turf.attackBlip != null) { mp.game.ui.removeBlip(turf.attackBlip); } + Natives }); } - gangturfs = null; - clearBlips(); if (turfs.length > 0) { gangturfs = [];