Hello, how to get weapon code

like : PISTOL = 09 00 00 00 4D 4B 32 33

also like this : SAR21 URBAN = F9

its would be easier if you share the code trick