Inventory System
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user