Inventory System

This commit is contained in:
VegaZ
2018-10-27 12:53:19 +02:00
parent 4b9225ed29
commit 39cb03b2ec
11 changed files with 490 additions and 35 deletions

View File

@@ -0,0 +1,15 @@
var inventoryBrowser;
mp.events.add("showInventory", (show) => {
if (show === true) {
inventoryBrowser = mp.browsers.new('package://Gui/Inventory/inventory.html');
mp.gui.chat.activate(false);
mp.gui.cursor.show(true, true);
} else {
if (inventoryBrowser) {
inventoryBrowser.destroy();
mp.gui.chat.activate(true);
mp.gui.cursor.show(false, false);
}
}
});