GXT::reset

From RAGE Multiplayer Wiki
Revision as of 08:44, 21 March 2020 by Rootcause (talk | contribs) (Created page with "This function is used to reset all changes done to GXT entries. {{ClientsideCsJsFunction}} {{JSContainer| <pre> mp.game.gxt.reset(); </pre> {{Example}} {{ClientsideCode| <p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function is used to reset all changes done to GXT entries.

Client-Side Function

 C#  JavaScript


JavaScript Syntax

mp.game.gxt.reset();

Example

Client-Side
mp.game.gxt.set("PM_PAUSE_HDR", "My Server Name");
mp.game.gxt.reset();

mp.gui.chat.push(`Header: ${mp.game.gxt.get("PM_PAUSE_HDR")}`); // "Header: RAGE Multiplayer"
mp.gui.chat.push(`Header Default: ${mp.game.gxt.getDefault("PM_PAUSE_HDR")}`); // "Header Default: Grand Theft Auto V"


See Also