Player:GetName
Description
Returns the player's name, this is an alias of Player:Nick.
We advise against using this. It may be changed or removed in a future update.
Use Player:Nick.
This function overrides Entity:GetName (in the Lua metatable, not in c++), keep it in mind when dealing with ents.FindByName or any engine function which requires the mapping name.
Garry's Mod
Rust
Steamworks
Wiki Help