Get player inventory
I'm looking for a way to find out if the player has an item with the id from GetlootItemInfo(number lootIndex)
I could also look through the whole inventory, but i would need to be able to identify the items using the id from GetLootItemInfo(number lootIndex) Maybe this is a dumb question, but i couldn't find a function that would do the job. Thanks and have a banana :banana: |
There isn't a function for the inventory that returns it all because it's a table.
You can access the cache this way: SHARED_INVENTORY.bagCache[BAG_BACKPACK] Or you can build your own table cycling through your bag length and using GetItemInfo(BAG_BACKPACK,<slot>). |
All times are GMT -6. The time now is 08:48 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI