Revision Difference
WEAPON:Ammo1#553186
<function name="Ammo1" parent="WEAPON" type="hook">
<ishook>yes</ishook>⤶
<description>Returns how much of primary ammo the player has.</description>
<realm>Shared</realm>
<rets>
<ret name="" type="number">The amount of primary ammo player has</ret>
</rets>
</function>
<example>
<description>As defined in weapon_base</description>
<code>
function SWEP:Ammo1()
return self:GetOwner():GetAmmoCount( self.Weapon:GetPrimaryAmmoType() )
end
</code>
</example>