Yes:
1. First create a weapon holder (gun = "WeaponHolder" createvehicle [getpos table select 0, getpos table select 0, .75])
2. Add the weapon to the weapon holder (gun addmagazinecargo ["M16",1]; gun addweaponcargo ["M16",1]
3. Thats it there is no 3