Weapon.GetPrintName

From GMod Wiki

Jump to: navigation, search


Function
Syntax Weapon:GetPrintName( )
Description:
Returns the name of the weapon as it shows up in your weapon menu.
Returns: String
In Object: Weapon
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Weapon.GetPrintName]Weapon.GetPrintName [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionOutput the name of weapon the player 'ply' is holding.
Used onNewerClient.png
Code
print(ply:GetActiveWeapon( ):GetPrintName())
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox