Garry's Mod Wiki

Weapon:Clip1

number Weapon:Clip1()

Description

Returns how much primary ammo is in the magazine.

This is not shared between clients and will instead return the maximum primary clip size.

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

DB GetPage 43
Generate Html 2
SaveChanges (1) 10
Render Body 0
Render Sidebar 12