ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getPlayerNametagColor

Function

getPlayerNametagColor

ServerPlayersIdentical to MTA:SA

Returns the colour of the nametag above the player's head.

Syntax

int getPlayerNametagColor(player thePlayer)

Arguments

thePlayerplayer
The player.

Returns

r, g, b or false.

Example

local r, g, b = getPlayerNametagColor(player)
outputChatBox(getPlayerName(player) .. ": cześć!", root, r, g, b)

See also