Simple 3 item equipment character

Looking for some information. I’ve been trying to create a simple system where the character can have 3 and only 3 items the can switch between.
The functionality should allow the character to pick up equipment around the map and replace the current held item with the new one.

So this should be like a simple phasmophobia style, character can have a max of three items the can hold, switch between and use the functions of the item. For example, when a flashlight is picked up the character can now use the flash light (on and off).

May tutorials on YouTube for an inventory system, but all go into massive details of having lots of different items to pick up, weapons etc but nothing on just a simple multiple item switching.

Just create the functions “PickupItem” and “DropItem”, one of them will be on the variable “inHands” when you take it in hand. If you pick up an item and the inventory is full, call the function “DropItem” of your item “inHands”.