getGlobalActionscriptFlag
GET_GLOBAL_ACTIONSCRIPT_FLAG0xE3B05614DCE1D014The 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.
getGlobalActionscriptFlag(flagIndex: number): numbergetGlobalActionscriptFlag(flagIndex: integer): integerUsage
const result = getGlobalActionscriptFlag(flagIndex);local result = getGlobalActionscriptFlag(flagIndex)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
flagIndex | int | number | integer |
Returns
int JavaScript number, Lua integerOn 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