Fix some things(Inventory)

This commit is contained in:
VegaZ
2018-12-23 22:34:47 +01:00
parent fd43a5370b
commit 202311ea40
3 changed files with 9 additions and 3 deletions

View File

@@ -9,6 +9,7 @@
var chat = false;
var showInventory = false;
var showGui = true;
var showInv = false;
const player = mp.players.local;
@@ -47,6 +48,11 @@ mp.keys.bind(0x45, false, function () {
//I //Inventar
mp.keys.bind(0x49, false, function () {
if (!chat) {
if (showInv === false) {
showInv = true;
} else {
showInv = false;
}
mp.events.callRemote("keyPress:I");
}
});
@@ -84,7 +90,7 @@ mp.keys.bind(0x4E, false, function () {
//T
mp.keys.bind(0x54, false, function () {
if (chat === false) {
if (chat === false && showInv === false) {
chat = true;
}
});