Target Weapon?

How would I get the weapon name of the weapon held by the player or npc I’m looking at?

GetActiveWeapon()