Garry's Mod Wiki

Player:Name

Description

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

Returns

1 string
Player's Steam name.

Example

Prints the players name in console.

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