Weapon Clip Maximum?

I’ve been scouting around looking for a method to retrieve a weapon’s clip maximum.
Have not had any luck.

I have tried (and failed) using:

[LUA]
LocalPlayer():GetActiveWeapon():GetTable().Primary.ClipSize
[/LUA]
^ Found in an oooold thread.

I’m sure there’s got to be something simple for this, so I thought I’d ask.

Any help is appreciated.

You can use that for generic Sweps, But C++ Coded weapons (HL2 Defaults) need local inputs that are manually written out.

Ah, thanks.