View Single Post
02/06/24, 01:34 AM   #1
evainefaye
Join Date: Feb 2024
Posts: 1
Refreshing PLAYER_INVENTORY

I'm still fairly new to all this but I've picked up quite a bit by taking apart others plugins, and web searches, that said, I'm a bit stuck right now.

I've been playing with both SHARED_INVENTORY and PLAYER_INVENTORY

I'm able to get SHARED_INVENTORY to do what I need with

SHARED_INVENTORY:GetOrCreateBagCache(BAG_BACKPACK)

then I ran across this little bit from PLAYER INVENTORY, PLAYER_INVENTORY:GenerateListOfVirtualStackedItems(BAG_BACKPACK), which seems to stack my item counts which would be useful for what I'm trying to do, but I can't figure out how to refresh it. I've tried about every refresh command I can find but I end up with nothing. Then just a bit ago it seems that calling this again works, but it doesnt work right away, perhaps there is some kind of a timer cooldown for it? Did I miss something? Been trying to dig through the source code but so far no luck.
  Reply With Quote