Currently the addWeapon and removeWeapon commands only operate on the weapons array. This array always operates on turret 0 in the case of turreted vehicles. It is not possible (as far as I can determine?) to have them operate on different turrets if those are present on the vehicle, even though they each have their own weapons array.
I would like to propose that you add the possibility to manipulate the weapons on turrets.