shop and inventory help pls

Hi All Iam creating a new fps multiplayer game and i finish everything in the game and it works 100% but now i create the shop system and need to make when i buy a weapon the weapon go to the inventory

Do you have a question?

yes how i make when i buy a weapon it go to inventory and can equip it

start small.

look up lists and/or dictionary’s

can you pls give me example because i want an advanced system can you give example about if i buy something from shop it goto the inventory just give me a simple example