MiscClientNot in this build

hasPendingScriptRouterLink

HAS_PENDING_SCRIPT_ROUTER_LINK

The GTA V native HAS_PENDING_SCRIPT_ROUTER_LINK of the MISC namespace, as LS:MP client scripts call it: the global function hasPendingScriptRouterLink, in JavaScript and in Lua.

SignatureJavaScript
hasPendingScriptRouterLink(): boolean
SignatureLua
hasPendingScriptRouterLink(): 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 = hasPendingScriptRouterLink();
Lua
local result = hasPendingScriptRouterLink()

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Misc MISC
In the game
BOOL HAS_PENDING_SCRIPT_ROUTER_LINK()

Open in the interactive natives reference