holster weapon and hide old

ok I think I might have half solved it. Because I’m using a map here and it can only hold one unique value of each type. I need to somehow hide ever other weapon not in the map, any ideas?