Loot containers

The inventory items array represents items that can go into the players inventory when picked up (see pic attached for example) such as the filing cabinet key that is used to open the cabinet. I want to do it can hold 5 max, maybe even 3 max like in the BioShock games. Thanks for your help.