Garry's Mod Wiki

Player:Name

string Player:Name()

Description

Returns the players name. Identical to Player:Nick and Player:GetName.

Returns

1 string
Player's Steam name.

This is limited to 31 characters even though Steam names can have 32.

Issue Tracker: 3178

Example

Prints the players name in console.

print( Entity( 1 ):Name() )
Output: Player1

Page Links


Special Pages


Wikis

?

Render Time: 37ms

DB GetPage 5
Generate Html 3
SaveChanges (1) 14
Render Body 0
Render Sidebar 12