setScriptRouterLink
SET_SCRIPT_ROUTER_LINKThe GTA V native SET_SCRIPT_ROUTER_LINK of the MISC namespace, as LS:MP client scripts call it: the global function setScriptRouterLink, in JavaScript and in Lua.
setScriptRouterLink(contextData: null): booleansetScriptRouterLink(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 = setScriptRouterLink(null);Lua
local result = setScriptRouterLink(nil)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
contextData | Any* | null | nil |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Misc MISC
- In the game
BOOL SET_SCRIPT_ROUTER_LINK(Any* contextData)