GuiAppendText: Difference between revisions
Jump to navigation
Jump to search
Automatyczna aktualizacja dokumentacji funkcji |
Complete Lua function catalog |
||
| Line 35: | Line 35: | ||
* Available only in client-side resource scripts. | * Available only in client-side resource scripts. | ||
[[Category:Lua Functions]] | |||
[[Category:Client Functions]] | [[Category:Client Functions]] | ||
[[Category:GUI Functions]] | [[Category:GUI Functions]] | ||
Latest revision as of 09:53, 15 August 2026
guiAppendText
Appends an escaped text entry to an RML element.
Syntax
bool guiAppendText(DocumentHandle document, string elementId, string text [, string className = "" [, string color = ""]])
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
document |
DocumentHandle |
yes | The owning document. |
elementId |
string |
yes | The container element's id attribute. |
text |
string |
yes | The text to append. |
className |
string |
no | An optional RCSS class for the created entry. |
color |
string |
no | An optional CSS-compatible text color. |
Returns
Returns true when the entry is appended; otherwise returns false.
Examples
Append a colored system message to chat:
guiAppendText(chatDocument, "messages", "Connected to the server", "system", "#9ad17b")
Notes
- Available only in client-side resource scripts.