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

@@ -7,6 +7,7 @@
//https://docs.microsoft.com/de-de/windows/desktop/inputdev/virtual-key-codes
var chat = false;
var showInventory = false;
//ENTER
mp.keys.bind(0x0D, false, function () {
@@ -23,6 +24,17 @@ mp.keys.bind(0x49, false, function () {
}
});
//J
mp.keys.bind(0x4A, false, function () {
if (showInventory === false) {
mp.events.call("showInventory", true);
showInventory = true;
} else {
mp.events.call("showInventory", false);
showInventory = false;
}
});
//N
mp.keys.bind(0x4E, false, function () {
if (!chat) {