Garry's Mod Wiki

Weapon:GetPrimaryAmmoType

  number Weapon:GetPrimaryAmmoType()

Description

Gets the primary ammo type of the given weapon.

Returns

1 number
The ammo type ID, or -1 if not found.