Revert "Fix I O M"

This reverts commit 895136bc72
This commit is contained in:
hydrant
2021-04-03 20:08:39 +02:00
parent 8abec2866a
commit ee305b78ec
3 changed files with 11 additions and 10 deletions

View File

@@ -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;