GXT::set: Difference between revisions
(Created page with "This function is used to add new GXT entries or replace existing ones. {{ClientsideCsJsFunction}} {{JSContainer| <pre> mp.game.gxt.set(labelNameOrHash, newLabelValue); </pre...") |
m (Fix category) |
||
| Line 28: | Line 28: | ||
{{GXT_functions_c}} | {{GXT_functions_c}} | ||
[[Category: | [[Category:Clientside API]] | ||
Latest revision as of 08:26, 21 March 2020
This function is used to add new GXT entries or replace existing ones.
Client-Side Function
JavaScript Syntax
mp.game.gxt.set(labelNameOrHash, newLabelValue);
Parameters
- labelNameOrHash: String/Number
- Name (string) or hash (number) of the GXT entry.
- newLabelValue: String
- New value of the GXT entry.
Example
Set pause menu title to "My Server Name":
Client-Side
mp.game.gxt.set("PM_PAUSE_HDR", "My Server Name");