But you’re already passing in the hashes, why would you want to convert hashes? you can just use them in the functions directly, even the weapon model names would probably work too.
I see what you mean, it can probably be improved, though I’ll probably take a completely different approach instead next time if I decide to ever redo this.