Garry's Mod Wiki

Weapon:GetPrintName

  string Weapon:GetPrintName()

Description

Returns the non-internal name of the weapon, that should be for displaying.

If that returns an untranslated message (#HL2_XX), use language.GetPhrase to see the "nice" name.
If SWEP.PrintName is not set in the Weapon or the Weapon Base then "<MISSING SWEP PRINT NAME>" will be returned.

Returns

1 string
The "nice" name of the weapon.