| Property | Value |
|---|---|
| Native Name | REGISTER_OBJECT_SCRIPT_BRAIN |
| Hash | 0x16AF9B4EEAC3B305 |
| Return Type | void |
| Build | 1207 |
| Parameters | scriptName (char*), modelHash (Hash), p2 (int), activationRange (float), p4 (int), p5 (int) |
Description: Registers a script for any object with a specific model hash.
Usage
Lua (Direct):
RegisterObjectScriptBrain(scriptName, modelHash, p2, activationRange, p4, p5)
Lua (Hash):
Citizen.InvokeNative(0x16AF9B4EEAC3B305, scriptName, modelHash, p2, activationRange, p4, p5)