MiscClientBlocked

registerIntToSave

REGISTER_INT_TO_SAVE0x34C9EE5986258415

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

SignatureJavaScript
registerIntToSave(p0: null, name: string): void
SignatureLua
registerIntToSave(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_INT_TO_SAVE(Any* p0, const char* name)
Hash
0x34C9EE5986258415

Open in the interactive natives reference