Garry's Mod Wiki

Revision Difference

game.GetAmmoMax#515039

<function name="GetAmmoMax" parent="game" type="libraryfunc">⤶ <description>⤶ Returns the real maximum amount of ammo of given ammo ID.⤶ ⤶ <note>Currently all ammo types have overridden maximum value of reserve ammo set to 9999.</note>⤶ </description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="id" type="number">Ammo type ID</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">The maximum amount of reserve ammo a player can hold of this ammo type.</ret>⤶ </rets>⤶ </function>⤶ ⤶