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: 35ms

Session 0
DB GetPage 5
Generate Html 3
SaveChanges 11
Render Body 0
Render Sidebar 13