id WeaponId( string name );
This gets the weapons id from its script name (excluding “weapon_”).
Beta 3.1
<lua> local weapId = WeaponId(“knife”); </lua>