Run a test mission on a dedicated server with debug console enabled (I attached the repro mission I used).
To summarize, setMagazineTurretAmmo has no effect if:
- the vehicle is not local (eg: another player is driving my vehicle, eg 2: my vehicle is local to server)
OR
- if the turret is not local (eg: another player is inside the turret) {F25327}