Player.Nick

From GMod Wiki

(Redirected from Player.GetName)
Jump to: navigation, search
Function
Syntax Player:Nick( )
Description:
Get the players name.
Returns: String
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.Nick]Player.Nick [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionWill Print Player Nickname to Chat when function is called
Used onNewerShared.png
Code
function playernick(ply)
   ply:ChatPrint(ply:Nick())
end
 
OutputYour Nickname


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox