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

Function

setWorldLabelText

Server and clientDrawing (dx)Trilogy Hub only

Changes the text of a 3D label.

Syntax

bool setWorldLabelText(element label, string text)

Arguments

labelelement
A label from createWorldLabel.
textstring
The new text.

Returns

true on success.

Example

local label = createWorldLabel("Kasa: 0", 1500, -1680, 15)
setWorldLabelText(label, "Kasa: 250")

See also