Player.Nick
From GMod Wiki
(Redirected from Player.GetName)
Function | |
Syntax | Player:Nick( ) |
Description: | |
Get the players name. | |
Returns: | String |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.Nick]Player.Nick [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Will Print Player Nickname to Chat when function is called |
---|---|
Used on | |
Code | function playernick(ply) ply:ChatPrint(ply:Nick()) end |
Output | Your Nickname |
Additional Notes
- Can be called with Player.Name and Player.GetName.