How do you lookup a specific value in a Struct in an array

So what you are saying is a separate Id for each Item like 1 for shotgun 2 for shotgun ammo, 3 for water, and so on?