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

Function

setWorldLabelOptions

Server and clientDrawing (dx)Trilogy Hub only

Changes a 3D label's options (the same as in createWorldLabel). Omitted options stay unchanged; attachTo = false detaches the label.

Syntax

bool setWorldLabelOptions(element label, table options)

Arguments

labelelement
A label from createWorldLabel.
optionstable
The new options.

Returns

true on success.

Example

local label = createWorldLabel("VIP", 0, 0, 3)
setWorldLabelOptions(label, { attachTo = player, offset = { 0, 0, 1.2 }, color = tocolor(255, 80, 80) })

See also