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

Function

getPlayerNametagStyle

ServerPlayersTrilogy Hub only

Returns the nametag look set for the player with setPlayerNametagStyle (a table with the fields enabled, distance, showDistance, scale, color, background).

Syntax

table getPlayerNametagStyle(player thePlayer)

Arguments

thePlayerplayer
The player.

Returns

The style, or false for a bad argument.

Example

local style = getPlayerNametagStyle(player)
outputChatBox("Tabliczki do " .. style.distance .. " m", player)

See also