Difference between revisions of "GXT::set"

From RAGE Multiplayer Wiki
Jump to navigation Jump to search
(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:Client-side Function]]
+
[[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

C.png C# Js.png JavaScript


JavaScript Syntax
Jslogo.png

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");


See Also