fix
This commit is contained in:
@@ -218,7 +218,7 @@
|
||||
setAttackBlip(bool) {
|
||||
var self = this;
|
||||
if (bool) {
|
||||
self.attackBlip = mp.game.ui.addBlipForRadius(self.x, self.y, 1, 20);
|
||||
self.attackBlip = mp.game.ui.addBlipForRadius(self.x, self.y, 1, 60);
|
||||
mp.game.invoke(Natives.SET_BLIP_SPRITE, self.attackBlip, 378);
|
||||
mp.game.invoke(Natives.SET_BLIP_AS_SHORT_RANGE, self.attackBlip, false);
|
||||
|
||||
@@ -251,15 +251,18 @@
|
||||
if ((!self._entered)) {
|
||||
if (self.isInsideArea() && (self.isNearGround() == true)) {
|
||||
self._entered = true;
|
||||
if (self._status == "attack")
|
||||
if (self._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 (self._status == "attack")
|
||||
if (self._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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user