GuiSetValue: Difference between revisions
Jump to navigation
Jump to search
Automatyczna aktualizacja dokumentacji funkcji |
Complete Lua function catalog |
||
| Line 31: | Line 31: | ||
* 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:54, 15 August 2026
guiSetValue
Sets the value of an element in a loaded RML document.
Syntax
bool guiSetValue(DocumentHandle document, string elementId, string value)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
document |
DocumentHandle |
yes | The owning document. |
elementId |
string |
yes | The target element's id attribute. |
value |
string |
yes | The new value. |
Returns
Returns true when the value is updated; otherwise returns false.
Examples
Fill a text input:
guiSetValue(chatDocument, "chat-input", "Hello world")
Notes
- Available only in client-side resource scripts.