They will still not want to cycle through the entire Data Table, surely (where there can be 50+ guns) but get 1 out of 3 instead. Probably like this:
Besides, the weapon is already equipped, the goal is to search by specific Name
You could keep names in a Map; there’s dozens of options here. But why complicate things.