- Documentation
- Shared functions
- setWorldLabelText
Function
setWorldLabelText
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
getWorldLabelTextReturns the text of a 3D label.createWorldLabelCreates a permanent 3D label (a"worldlabel"element), drawn by the player's game with no Lua code each frame. Created on the server it is seen by everyone, on the client only by that player. It is visible only in range and in the same dimension and interior.