GXT::reset
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 reset all changes done to GXT entries.
Client-side functionJavaScript
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"