MiscClientBlocked

registerFloatToSave

REGISTER_FLOAT_TO_SAVE0x7CAEC29ECB5DFEBB

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

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

Open in the interactive natives reference