MiscClientNot in this build

setScriptRouterLink

SET_SCRIPT_ROUTER_LINK

The 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.

SignatureJavaScript
setScriptRouterLink(contextData: null): boolean
SignatureLua
setScriptRouterLink(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

ParameterTypeJavaScriptLua
contextDataAny*nullnil

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Misc MISC
In the game
BOOL SET_SCRIPT_ROUTER_LINK(Any* contextData)

Open in the interactive natives reference