How to Stop Automatic Fire When Ammo Reaches 0?

I have my input set to only fire when my current ammo in clip is more than 0.

My problem is that when I fire automatically I can’t find a way to stop firing (while trigger is held and ammo counter reaches 0)

Has anyone found a way to beat this? I can’t find anything in current documentation but I may have missed it.

Thanks for any help in advance

yeah you might be checking your (if ammo=0) condition and somehow it goes in -ve. you can simply use (if ammo<1) or (if ammo<=0) condition then you will be able to resolve this issue