Hey here u can find an official inventory tutorial https://www.youtube.com/watch?v=RQm6cm05SLc
Thas said, for something more advanced and for your question:
Propably what you need is to create an Actor Component Inventory. You can place on any actor and access it easily. Store the items in an array and add any functionality you like. You can access it with a simple GET.