Difference between revisions of "GXT::getDefault"

From RAGE Multiplayer Wiki
Jump to navigation Jump to search
(Created page with "This function is used to get the default value of a GXT entry. {{ClientsideCsJsFunction}} {{JSContainer| <pre> mp.game.gxt.getDefault(labelNameOrHash); </pre> {{Parameters}...")
 
(No difference)

Latest revision as of 08:37, 21 March 2020

This function is used to get the default value of a GXT entry.

Client-Side Function

C.png C# Js.png JavaScript


JavaScript Syntax
Jslogo.png

mp.game.gxt.getDefault(labelNameOrHash);

Parameters

  • labelNameOrHash: String/Number
    • Name (string) or hash (number) of the GXT entry.

Returns

  • String

Example

Get the default value of PM_PAUSE_HDR:

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


See Also