MiscClientNot in this build

reportInvalidScriptRouterArgument

REPORT_INVALID_SCRIPT_ROUTER_ARGUMENT

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

SignatureJavaScript
reportInvalidScriptRouterArgument(argument: string): void
SignatureLua
reportInvalidScriptRouterArgument(argument: string)
⚠
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
reportInvalidScriptRouterArgument(argument);
Lua
reportInvalidScriptRouterArgument(argument)

Parameters

ParameterTypeJavaScriptLua
argumentstringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Misc MISC
In the game
void REPORT_INVALID_SCRIPT_ROUTER_ARGUMENT(const char* argument)

Open in the interactive natives reference