MiscClientBlocked

registerBoolToSave

REGISTER_BOOL_TO_SAVE0xC8F4131414C835A1

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

SignatureJavaScript
registerBoolToSave(p0: null, name: string): void
SignatureLua
registerBoolToSave(p0: nil, name: string)
✕
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
Misc MISC
In the game
void REGISTER_BOOL_TO_SAVE(Any* p0, const char* name)
Hash
0xC8F4131414C835A1

Open in the interactive natives reference