[+] Add Driving License to Interaction Menu and as 'Object' to show other Players via the Interaction menu
This commit is contained in:
@@ -24,7 +24,17 @@ export default function inventory(globalData: GlobalData): void {
|
||||
|
||||
mp.events.add('inventoryShow', (iWeight, iNameArr, iAmountArr, iIdArr, playersArr) => {
|
||||
if (!globalData.InMenu) {
|
||||
if (invBrowser !== null) {
|
||||
if (invBrowser === null) {
|
||||
|
||||
mp.gui.cursor.show(true, true);
|
||||
|
||||
Players = playersArr;
|
||||
itemIdArr = iIdArr;
|
||||
itemAmountArr = iAmountArr;
|
||||
itemNameArr = iNameArr;
|
||||
invWeight = iWeight;
|
||||
} else {
|
||||
|
||||
try {
|
||||
invBrowser.destroy()
|
||||
invBrowser = null;
|
||||
@@ -33,16 +43,8 @@ export default function inventory(globalData: GlobalData): void {
|
||||
mp.gui.cursor.show(false, false);
|
||||
}
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
mp.gui.cursor.show(true, true);
|
||||
|
||||
Players = playersArr;
|
||||
itemIdArr = iIdArr;
|
||||
itemAmountArr = iAmountArr;
|
||||
itemNameArr = iNameArr;
|
||||
invWeight = iWeight;
|
||||
invBrowser = mp.browsers.new("package://assets/html/inventory/inventory.html");
|
||||
}
|
||||
});
|
||||
var offer = 0;
|
||||
|
||||
Reference in New Issue
Block a user