I have found that if you are in a static AA launcher and you run (vehicle player) setVehicleAmmoDef 1 then it will switch to a blank firemode and you won't be able to fire at all unless you press f to switch to the normal firemode.
The command does restore the ammo to full however (as it should).