registerObjectScriptBrain
REGISTER_OBJECT_SCRIPT_BRAIN0x0BE84C318BA6EC22The GTA V native REGISTER_OBJECT_SCRIPT_BRAIN of the BRAIN namespace, as LS:MP client scripts call it: the global function registerObjectScriptBrain, in JavaScript and in Lua.
registerObjectScriptBrain(
scriptName: string,
modelHash: Hash,
p2: number,
activationRange: number,
p4: number,
p5: number
): voidregisterObjectScriptBrain(
scriptName: string,
modelHash: Hash,
p2: integer,
activationRange: number,
p4: integer,
p5: integer
)✕
Blocked for scripts: Game script threads
Resources do not start, stop or adopt the game's own compiled scripts. Your code runs as an LS:MP resource.
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
- Script brains BRAIN
- In the game
void REGISTER_OBJECT_SCRIPT_BRAIN(const char* scriptName, Hash modelHash, int p2, float activationRange, int p4, int p5)- Hash
0x0BE84C318BA6EC22