SecurityClientBlocked

registerScriptVariable

REGISTER_SCRIPT_VARIABLE0x40EB1EFD921822BC

The GTA V native REGISTER_SCRIPT_VARIABLE of the SECURITY namespace, as LS:MP client scripts call it: the global function registerScriptVariable, in JavaScript and in Lua.

SignatureJavaScript
registerScriptVariable(variable: null): void
SignatureLua
registerScriptVariable(variable: nil)
✕
Blocked for scripts: Raw memory and structures

This native reads or fills a memory structure a script has no way to provide, so it is not callable. For entity lists, use lsmp.getGamePool. For JSON, use lsmp.json.

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
Security SECURITY
In the game
void REGISTER_SCRIPT_VARIABLE(Any* variable)
Hash
0x40EB1EFD921822BC
Introduced
Game build 2545 legacy numbering
Formerly
_REGISTER_PROTECTED_VARIABLE

Open in the interactive natives reference