How to add inventory to NPCs


I’m having some trouble trying to add an inventory to an NPC. My first person character has a working inventory system (Made using this tutorial:

Now what I want to do is implement it for NPCs so I could loot on their corpse and create merchants…

I’m sure I already have the answer somewhere, but I can’t find it, any help would be greate! :wink: