Garry's Mod Wiki

Revision Difference

Weapon:Clip1#512129

<function name="Clip1" parent="Weapon" type="classfunc">⤶ <description>Returns how much primary ammo is in the magazine.</description>⤶ <realm>Shared</realm>⤶ <rets>⤶ <ret name="" type="number">The amount of primary ammo in the magazine.</ret>⤶ </rets>⤶ </function>⤶ ⤶ <example>⤶ <description>Prints the amount of primary ammo in the magazine of the weapon the 1st player has equipped.</description>⤶ <code>print( player.GetByID( 1 ):GetActiveWeapon():Clip1() )</code>⤶ <output>Will print 45 for fully loaded SMG1.</output>⤶ ⤶ </example>