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.

Example

Prints the players name in console.

print(Player(1):Name())
Output: YourNameHere

Page Links


Special Pages


Wikis

?

Render Time: 30ms

DB GetPage 4
Generate Html 2
SaveChanges 9
Render Body 0
Render Sidebar 12