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