I thought you might be interested in looking at Detecting if an item is a magazine or weapon or if it's in cfgmagazines or cfgWeapons.
https://forums.bohemia.net/forums/topic/157915-detecting-if-an-item-is-a-magazine-or-weapon-or-if-its-in-cfgmagazines-or-cfgweapons/?do=findComment&comment=2480422
× Pasted as rich text. Restore formatting
Only 75 emoji are allowed.
× Your link has been automatically embedded. Display as a link instead
× Your previous content has been restored. Clear editor
× You cannot paste images directly. Upload or insert images from URL.