getPlayerName | Multi Theft Auto: Wiki Skip to content

getPlayerName

Client-side
Server-side
Shared
Needs checking

This function was partially migrated from the old wiki. Please review manually:

  • Missing section: Limits

Pair: setPlayerName

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function returns a string containing the name of the specified player.

Syntax

getPlayerName ( )

Code Examples

server
addCommandHandler("myname", function(ply)
outputChatBox("Your name: "..getPlayerName(ply), ply)
end)

See Also