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: 24ms

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 12
Render Body 0
Render Sidebar 7