Garry's Mod Wiki

Weapon:Clip1

number Weapon:Clip1()

Description

Returns how much primary ammo is in the magazine.

Returns

1 number
The amount of primary ammo in the magazine.

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.

Page Links


Special Pages


Wikis

?

Render Time: 95ms

DB GetPage 21
Generate Html 3
SaveChanges 53
Render Body 0
Render Sidebar 15