Inventory rework done (WIP)

This commit is contained in:
Lukas Moungos
2019-07-29 00:27:20 +02:00
parent 8aeb47406c
commit e2b3398393
3 changed files with 34 additions and 4 deletions

View File

@@ -48,6 +48,10 @@ export default function inventory(globalData: GlobalData): void {
itemAmountArr = itemAmountArr1;
}
});
mp.events.add("CEF:invThrowItem", (itemId) => {
mp.events.callRemote('invThrowItem', itemId);
});
mp.events.add("CEF:BrowserLoaded", () => {
invBrowser.execute(`setItems("${JSON.stringify(itemIdArr)}","${JSON.stringify(itemAmountArr)}");`);