ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getPlayerNametagText

Function

getPlayerNametagText

Server and clientPlayersIdentical to MTA:SA

Returns the nametag text (the nickname by default).

Syntax

string getPlayerNametagText(player thePlayer)

Arguments

thePlayerplayer
The player.

Returns

The text.

Example

for _, p in ipairs(getElementsByType("player")) do
    outputChatBox(getPlayerNametagText(p))
end

See also