- Documentation
- Client functions
- guiSetText
Function
guiSetText
Changes a control's text.
Syntax
bool guiSetText(element guiElement, string text)Arguments
guiElementelement- The control.
textstring- New text.
Returns
true on success.
Example
setTimer(function()
local now = getRealTime()
guiSetText(clockLabel, ("%02d:%02d"):format(now.hour, now.minute))
end, 1000, 0)