game.GetAmmoMax

From Garry's Mod
Jump to: navigation, search
 game.GetAmmoMax( )

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.

Arguments

number id

Ammo type ID

Returns

number

The maximum amount of reserve ammo a player can hold of this ammo type.
Personal tools
Navigation