Getting active weapon's name (not PrintName)

I’ve been looking through the wiki and I can’t find a way to get the name (e.g. weapon_pistol). Is it possible to get this some way?

Thanks.

Call **[Entity.GetClass

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Entity.GetClass)** on the weapon returned by **[Player.GetActiveWeapon

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Player.GetActiveWeapon)**.

Thank you :slight_smile: