ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setNametagStyle

Function

setNametagStyle

ClientMiscellaneousTrilogy Hub only

Sets the look of the built-in nametags above other players' heads for the local player. Fields as in setPlayerNametagStyle: enabled, distance, showDistance, scale, color, background; pass only the ones to change.

Syntax

bool setNametagStyle(table style)

Arguments

styletable
The fields to change.

Returns

true on success; false for a bad field.

Example

setNametagStyle({
    distance = 30,
    color = tocolor(255, 255, 255, 255),
    background = false,
})

See also