hello, i'm trying to implement a custom shop not unlike that of Aghanim's Labyrinth. I've tried to study Valve's codebase as best as I can, but I'm still encountering this one issue stated in the title. The custom-shop items show up successfully in the custom shop, and I can buy items from it. However as soon as the items are purchased they are added to the stash, which must be retrieved AT THE HOME SHOP.
How can i make it so that items bough at the custom shop get added to the player inventory (instead of acting as if player bought an item out of shop range). Failing that, how could i make the stash retrievable from the custom shop?
I've tried to immitate Agh's Lab as best as i can.
Here's the relevant code:
GameRules:GetGameModeEntity():SetSendToStashEnabled(true)
GameRules:GetGameModeEntity():SetStashPurchasingDisabled(false)
GameRules:SetUseUniversalShopMode( true )