Fix I O M
This commit is contained in:
@@ -15,11 +15,13 @@ export default function playerList(globalData: IGlobalData): void {
|
|||||||
playerlistBrowser.destroy();
|
playerlistBrowser.destroy();
|
||||||
playerlistBrowser = null;
|
playerlistBrowser = null;
|
||||||
globalData.InInput = false;
|
globalData.InInput = false;
|
||||||
|
globalData.InMenu = false;
|
||||||
mp.gui.cursor.show(false, false);
|
mp.gui.cursor.show(false, false);
|
||||||
mp.gui.chat.activate(true);
|
mp.gui.chat.activate(true);
|
||||||
}
|
}
|
||||||
else if (!globalData.InInput) {
|
else if (!globalData.InMenu) {
|
||||||
globalData.InInput = true;
|
globalData.InInput = true;
|
||||||
|
globalData.InMenu = true;
|
||||||
playerlistBrowser = mp.browsers.new('package://assets/html/Playerlist/Tabliste.html');
|
playerlistBrowser = mp.browsers.new('package://assets/html/Playerlist/Tabliste.html');
|
||||||
mp.gui.chat.activate(false);
|
mp.gui.chat.activate(false);
|
||||||
mp.gui.cursor.show(true, true);
|
mp.gui.cursor.show(true, true);
|
||||||
|
|||||||
@@ -16,12 +16,14 @@
|
|||||||
invBrowser.destroy()
|
invBrowser.destroy()
|
||||||
invBrowser = null;
|
invBrowser = null;
|
||||||
globalData.InInput = false;
|
globalData.InInput = false;
|
||||||
|
globalData.InMenu = false;
|
||||||
loaded = false;
|
loaded = false;
|
||||||
mp.gui.cursor.show(false, false);
|
mp.gui.cursor.show(false, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!globalData.InInput) {
|
if (!globalData.InMenu) {
|
||||||
globalData.InInput = true;
|
globalData.InInput = true;
|
||||||
|
globalData.InMenu = true;
|
||||||
mp.gui.cursor.show(true, true);
|
mp.gui.cursor.show(true, true);
|
||||||
itemArr = [];
|
itemArr = [];
|
||||||
vehItemArr = [];
|
vehItemArr = [];
|
||||||
@@ -37,6 +39,7 @@
|
|||||||
|
|
||||||
mp.events.add('openInventory', () => {
|
mp.events.add('openInventory', () => {
|
||||||
globalData.InInput = true;
|
globalData.InInput = true;
|
||||||
|
globalData.InMenu = true;
|
||||||
mp.gui.cursor.show(true, true);
|
mp.gui.cursor.show(true, true);
|
||||||
itemArr = [];
|
itemArr = [];
|
||||||
vehItemArr = [];
|
vehItemArr = [];
|
||||||
@@ -46,6 +49,7 @@
|
|||||||
invBrowser.destroy()
|
invBrowser.destroy()
|
||||||
invBrowser = null;
|
invBrowser = null;
|
||||||
globalData.InInput = false;
|
globalData.InInput = false;
|
||||||
|
globalData.InMenu = false;
|
||||||
loaded = false;
|
loaded = false;
|
||||||
mp.gui.cursor.show(false, false);
|
mp.gui.cursor.show(false, false);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -32,15 +32,9 @@ export default function attachmentManager(game: IGame) {
|
|||||||
} else if (entityRage.type === "vehicle") {
|
} else if (entityRage.type === "vehicle") {
|
||||||
var vehicle = game.vehicles.at(entityRage.remoteId);
|
var vehicle = game.vehicles.at(entityRage.remoteId);
|
||||||
entity = vehicle;
|
entity = vehicle;
|
||||||
var realName = mp.game.ui.getLabelText(mp.game.vehicle.getDisplayNameFromVehicleModel(entityRage.model));
|
|
||||||
} else if (entityRage.type === "object") {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let e = game.attachments.get(entity);
|
let e = game.attachments.get(entity);
|
||||||
|
|
||||||
if (this.attachments.hasOwnProperty(id)) {
|
if (this.attachments.hasOwnProperty(id)) {
|
||||||
@@ -65,7 +59,7 @@ export default function attachmentManager(game: IGame) {
|
|||||||
rotation: attInfo.rotation
|
rotation: attInfo.rotation
|
||||||
};
|
};
|
||||||
|
|
||||||
game.objects.setData(rageObject, attachmentData); // hier hakt es mein freund
|
game.objects.setData(rageObject, attachmentData);
|
||||||
|
|
||||||
let object = game.objects.at(rageObject.remoteId);
|
let object = game.objects.at(rageObject.remoteId);
|
||||||
|
|
||||||
@@ -264,7 +258,6 @@ export default function attachmentManager(game: IGame) {
|
|||||||
|
|
||||||
if (e != null) {
|
if (e != null) {
|
||||||
if (e.__attachmentObjects) {
|
if (e.__attachmentObjects) {
|
||||||
//game.wait(2500);
|
|
||||||
attachmentMngr.shutdownFor(entityRage);
|
attachmentMngr.shutdownFor(entityRage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user