Set player's current active weapon stats

I know there’s weapons.get, which returns the swep table, but is there one that allows you to set a weapon’s stat on a weapon the player’s holding? Like you get the player’s weapon as a variable “wep” and go like wep.PrintName = “new name”

How would I go about doing this?

ply#GetActiveWeapon() will get the current weapon.