GXT::set
Not available on SYNC MP yet
This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.
This function is used to add new GXT entries or replace existing ones.
Client-side functionJavaScript
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");