MiscClientBlocked

terminateAllScriptsWithThisName

TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME0x9DC711BC69C548DF

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

SignatureJavaScript
terminateAllScriptsWithThisName(scriptName: string): void
SignatureLua
terminateAllScriptsWithThisName(scriptName: string)
✕
Blocked for scripts: Game script threads

Resources do not start, stop or adopt the game's own compiled scripts. Your code runs as an LS:MP resource.

Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.

Reference

Namespace
Misc MISC
In the game
void TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME(const char* scriptName)
Hash
0x9DC711BC69C548DF

Open in the interactive natives reference