- Documentation
- Server functions
- textDisplayRemoveText
Function
textDisplayRemoveText
Removes a text item from a display (the item still exists and can be added again).
Syntax
bool textDisplayRemoveText(textdisplay display, textitem text)Arguments
displaytextdisplay- The display.
texttextitem- The text item.
Returns
true on success.
Example
local display = textCreateDisplay()
local hint = textCreateTextItem("Podpowiedz", 0.5, 0.9)
textDisplayAddText(display, hint)
setTimer(function() textDisplayRemoveText(display, hint) end, 5000, 1)