registerScriptVariable
REGISTER_SCRIPT_VARIABLE0x40EB1EFD921822BCThe 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.
registerScriptVariable(variable: null): voidregisterScriptVariable(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