Weapon/Clip1

From Garry's Mod
Jump to: navigation, search
 Weapon:Clip1( )

Contents

Description

Returns how much primary ammo is in the magazine.

Returns

number

The amount of primary ammo in the magazine.

Examples

Example

Prints the amount of primary ammo in the magazine of the weapon the 1st player has equipped.

print( player.GetByID( 1 ):GetActiveWeapon():Clip1() )

Output:

Will print 45 for fully loaded SMG1.
Personal tools
Navigation