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

DB GetPage 4
Generate Html 2
SaveChanges (1) 8
Render Body 0
Render Sidebar 6