ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Graphics Help (https://www.esoui.com/forums/forumdisplay.php?f=176)
-   -   Get player inventory (https://www.esoui.com/forums/showthread.php?t=7139)

Minecorv 06/13/17 01:10 PM

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:

Rhyono 06/13/17 06:05 PM

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:25 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI