- Documentation
- Shared functions
- setWorldLabelOptions
Function
setWorldLabelOptions
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) })