_START_PRELOADED_SCRIPT_BRAIN
Based on its name and signature, here is our best reading:
Appears to start an already loaded brain script scriptName on entity with the given stack size, returning a thread id.
Signature
int _START_PRELOADED_SCRIPT_BRAIN(Entity entity, const char* scriptName, int scriptStackSize, BOOL p3); // 0x4E4507CC5E4DB869 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | scriptName | const char* |
| 3 | scriptStackSize | int |
| 4 | p3 | BOOL |
Facts
| Name | _START_PRELOADED_SCRIPT_BRAIN |
|---|---|
| Hash | 0x4E4507CC5E4DB869 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x4E4507CC5E4DB869, -- _START_PRELOADED_SCRIPT_BRAIN
PlayerPedId(), -- Entity entity
"text", -- const char* scriptName
0, -- int scriptStackSize
false, -- BOOL p3
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x4E4507CC5E4DB869", // _START_PRELOADED_SCRIPT_BRAIN
PlayerPedId(), // Entity entity
"text", // const char* scriptName
0, // int scriptStackSize
false, // BOOL p3
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x4E4507CC5E4DB869, // _START_PRELOADED_SCRIPT_BRAIN
API.PlayerPedId(), // Entity entity
"text", // const char* scriptName
0, // int scriptStackSize
false // BOOL p3
);Related BRAIN natives
- _START_SCRIPT_BRAIN
- _GET_SCRIPT_BRAIN_ENTITY
- _REMOVE_SCRIPT_BRAIN_ENTITY
- DISABLE_SCRIPT_BRAIN_SET
- ENABLE_SCRIPT_BRAIN_SET
- REGISTER_OBJECT_SCRIPT_BRAIN
- _0x4AA5EA1EDFB25786
- _0xA6AC35DB4A7957A8
- REACTIVATE_ALL_OBJECT_BRAINS_THAT_ARE_WAITING_TILL_OUT_OF_RANGE
- REACTIVATE_NAMED_OBJECT_BRAINS_WAITING_TILL_OUT_OF_RANGE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.