HUDClientChecked by LS:MP

getGlobalActionscriptFlag

GET_GLOBAL_ACTIONSCRIPT_FLAG0xE3B05614DCE1D014

The GTA V native GET_GLOBAL_ACTIONSCRIPT_FLAG of the HUD namespace, as LS:MP client scripts call it: the global function getGlobalActionscriptFlag, in JavaScript and in Lua.

SignatureJavaScript
getGlobalActionscriptFlag(flagIndex: number): number
SignatureLua
getGlobalActionscriptFlag(flagIndex: integer): integer

Usage

JavaScript
const result = getGlobalActionscriptFlag(flagIndex);
Lua
local result = getGlobalActionscriptFlag(flagIndex)

Parameters

ParameterTypeJavaScriptLua
flagIndexintnumberinteger

Returns

int JavaScript number, Lua integer

On LS:MP

ℹ
Checked by LS:MP

flagIndex must be between 0 and 19. Otherwise the call is ignored and returns 0: nothing reaches the game, and no error is raised.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns the ActionScript flagValue.
ActionScript flags are global flags that scaleforms use
Flags found during testing
0: Returns 1 if the web_browser keyboard is open, otherwise 0
1: Returns 1 if the player has clicked back twice on the opening page, otherwise 0 (web_browser)
2: Returns how many links the player has clicked in the web_browser scaleform, returns 0 when the browser gets closed
9: Returns the current selection on the mobile phone scaleform

There are 20 flags in total.

Reference

Namespace
HUD HUD
In the game
int GET_GLOBAL_ACTIONSCRIPT_FLAG(int flagIndex)
Hash
0xE3B05614DCE1D014

Open in the interactive natives reference