Difference between revisions of "GXT::reset"

From RAGE Multiplayer Wiki
Jump to navigation Jump to search
(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...")
 
(No difference)

Latest revision as of 08:44, 21 March 2020

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

Client-Side Function

C.png C# Js.png JavaScript


JavaScript Syntax
Jslogo.png

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