getScriptRouterContext
GET_SCRIPT_ROUTER_CONTEXTThe GTA V native GET_SCRIPT_ROUTER_CONTEXT of the MISC namespace, as LS:MP client scripts call it: the global function getScriptRouterContext, in JavaScript and in Lua.
getScriptRouterContext(contextData: null): booleangetScriptRouterContext(contextData: nil): boolean⚠
Not in this game build
The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.
Usage
JavaScript
const result = getScriptRouterContext(null);Lua
local result = getScriptRouterContext(nil)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
contextData | Any* | null | nil |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Misc MISC
- In the game
BOOL GET_SCRIPT_ROUTER_CONTEXT(Any* contextData)