GXT::get
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 get the value of a GXT entry.
Client-side functionJavaScript
mp.game.gxt.get(labelNameOrHash);
Parameters
- labelNameOrHash: String/Number
- Name (string) or hash (number) of the GXT entry.
Returns
- String
Example
Get the value of PM_PAUSE_HDR:
Client-Side
mp.game.gxt.set("PM_PAUSE_HDR", "My Server Name");
mp.gui.chat.push(`Header: ${mp.game.gxt.get("PM_PAUSE_HDR")}`); // "Header: My Server Name"