MiscClientBlocked

setSaveHouse

SET_SAVE_HOUSE0x4F548CABEAE553BC

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

SignatureJavaScript
setSaveHouse(savehouseHandle: number, p1: boolean, p2: boolean): void
SignatureLua
setSaveHouse(savehouseHandle: integer, p1: boolean, p2: boolean)
✕
Blocked for scripts: Saves and game flow

Scripts cannot save, load or restart the game. For persistent data, use storage.

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 SET_SAVE_HOUSE(int savehouseHandle, BOOL p1, BOOL p2)
Hash
0x4F548CABEAE553BC

Open in the interactive natives reference