Fix some things(Inventory)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user