I need a specific kind of Inventory

Im making a game, sort of like, a creepy game. You can have an inventory, and when you put it in 1 one your 2 hand slots, you can use it.
Could someone help me?

do you know how to code, its going to require coding.

create an array thats the inventory, check if something is in the array if its a weapon use the weapons attached script. the weapon should have a script on it where buttons do stuff like if mouse click then fire.

then you’d have another item it’d be say a pickaxe, it’d have a script attached to it where buttons do stuff like if mouse click then dig or swing. You’d call the attached script but the action would change cause the script would be different for each weapon.

Im not REALLY good with coding, ok, ok maybe i suck but I need an inv that you could put things in ur hand.

P.S. Pickaxe= r u a minecraft fan?