Get player inventory - ESOUI
Thread Tools Display Modes
06/13/17, 01:10 PM   #1
Join Date: Jun 2017
Posts: 1
Question 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
  Reply With Quote
06/13/17, 06:05 PM   #2
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 658
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>).
  Reply With Quote

ESOUI » Developer Discussions » Graphics Help » Get player inventory

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off