From 6ba1fbe8b7fa27fd27c9fa16aff172d9fffc8281 Mon Sep 17 00:00:00 2001 From: Lukas Moungos Date: Wed, 4 Dec 2019 20:52:13 +0100 Subject: [PATCH] fix --- ReallifeGamemode.Client/util/Gangwar.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Client/util/Gangwar.ts b/ReallifeGamemode.Client/util/Gangwar.ts index 447eba34..7fcdd9ea 100644 --- a/ReallifeGamemode.Client/util/Gangwar.ts +++ b/ReallifeGamemode.Client/util/Gangwar.ts @@ -220,6 +220,8 @@ if (bool) { self.attackBlip = mp.game.ui.addBlipForRadius(self.x, self.y, 1, 20); mp.game.invoke(Natives.SET_BLIP_SPRITE, self.attackBlip, 378); + mp.game.invoke(Natives.SET_BLIP_AS_SHORT_RANGE, self.attackBlip, false); + } else if (!bool) { mp.game.invoke(Natives.SET_BLIP_SPRITE, self.attackBlip, 5); } @@ -249,14 +251,14 @@ if ((!self._entered)) { if (self.isInsideArea() && (self.isNearGround() == true)) { self._entered = true; - if (this.status == "attack") + if (this._status == "attack") mp.game.audio.playSoundFrontend(1, "Enter_Capture_Zone", "DLC_Apartments_Drop_Zone_Sounds", true); mp.events.callRemote("Gangarea:Enter", JSON.stringify(self.id)); } } else if (self._entered == true) { if (!self.isInsideArea() || (self.isNearGround() == false)) { self._entered = false; - if (this.status == "attack") + if (this._status == "attack") mp.game.audio.playSoundFrontend(1, "Exit_Capture_Zone", "DLC_Apartments_Drop_Zone_Sounds", true); mp.events.callRemote("Gangarea:Leave", JSON.stringify(self.id)); }