(info) Other great resources: Official JS API docs, Scripting Forum

getWeaponInfo()

getWeaponInfo(weaponID)

Warzone 3.2+

returns weapon object