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

http://puu.sh/9VJsO/4f2834895e.jpg

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.

http://puu.sh/9VJxM/98386f509f.jpg

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: