Garry's Mod Wiki

Player:Name

Description

We advise against using this. It may be changed or removed in a future update. Use Player:Nick.

Returns the player's nick name. Identical to Player:Nick and Player:GetName.

Returns

1 string
Player's name.

Example

Prints the players name in console.

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