How to add inventory to NPCs

Hi!

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: http://shootertutorial.com/2015/12/15/complete-skyrim-like-inventory-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:

Thanks!