This command enables (if set to 1) and disables infinite ammo for your weapon. Obviously, with unlimited ammo, you will never run out of ammo for any of your weapons.
The syntax for the sv_infinite_ammo command is as follows:
sv_infinite_ammo [0 / 1] sv_cheats Default Value: 0
This command has the following arguments:
|0 / 1||Set this to 0 to disable infinite ammo (default). Set this to 1 to enable infinite ammo.|
Find below working examples of the sv_infinite_ammo command.
This console command disables infinite ammunition for all of your weapons.
This command enables unlimited ammo for your gun, meaning you'll never run out of bullets.