Weapon:GetPrimaryAmmoType( )

Ok, so I’m making a hud for practice(I’m a beginner at Lua) anyways,

Weapon:GetPrimaryAmmoType( ) Returns the total ammo for the currently active weapon, like so


As you can see it gives me the reserve ammo for the weapon and not the ammo I have in the mag

I’ve looked at the wiki but I can’t find anything related to the mag.


This is how I basically want it, I want the mag ammo to show, anyone know?

I think this is what you’re looking for http://wiki.garrysmod.com/page/Weapon/Clip1

WEAPON:Clip1() ?

edit: Gah, ninja’d

Thats exactly what i was looking for, thank you both :slight_smile: