Garry's Mod Wiki

WEAPON:Ammo1

  number WEAPON:Ammo1()

Description

Returns how much of primary ammo the player has.

Returns

1 number
The amount of primary ammo player has

Example

As defined in weapon_base

function SWEP:Ammo1() return self.Owner:GetAmmoCount( self.Weapon:GetPrimaryAmmoType() ) end