Returns the player's active weapon.
If used on a LocalPlayer() and the player is spectating another player with
OBS_MODE_IN_EYE, the weapon returned will be of the spectated player.
The weapon the player is currently has equipped.
Prints the player's active weapon's class name.
print(Entity( 1 ):GetActiveWeapon():GetClass())
Output: The active weapon's class. For example, if you are holding the tool gun then this will be "gmod_tool".