Garry's Mod Wiki

game.GetAmmoMax

  number game.GetAmmoMax( number id )

Description

Returns the real maximum amount of ammo of given ammo ID, regardless of the setting of gmod_maxammo convar.

Arguments

1 number id
Ammo type ID

Returns

1 number
The maximum amount of reserve ammo a player can hold of this ammo type.