- Documentation
- Server functions
- getPlayerNametagColor
Function
getPlayerNametagColor
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)