GangwarFix zweiter Tag 4

This commit is contained in:
VegaZ
2021-03-30 20:30:36 +02:00
parent 9d4bb6ff7b
commit e00194e023
2 changed files with 3 additions and 5 deletions

View File

@@ -502,7 +502,7 @@
gangturfs[gangturfs.length - 1].edit = false;
gangturfs.forEach(function (turf) {
turf._status = "disabled";
turf.id = -420; //Due to garbage collecting this value needs to be negative, so that the Server doesn't find multiple Turfs in the Database with same ID's.
turf.id = null; //Due to garbage collecting this value needs to be negative, so that the Server doesn't find multiple Turfs in the Database with same ID's.
if (turf.leaderColShape != null) {
turf.leaderColShape.destroy();
turf.leaderColShape = null;
@@ -510,7 +510,6 @@
if (turf._marker)
if (turf.blip != null) {
mp.game.ui.removeBlip(turf.blip);
mp.game.invoke(Natives.SET_BLIP_ALPHA, turf.blip, 0);
}
if (turf.leaderBlip != null) {
mp.game.ui.removeBlip(turf.leaderBlip);
@@ -518,7 +517,6 @@
if (turf.attackBlip != null) {
mp.game.ui.removeBlip(turf.attackBlip);
}
Natives
});
}
clearBlips();