The Lab
BRAIN native

_START_PRELOADED_SCRIPT_BRAIN

returns int4 paramsbuild 1207

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

C
int _START_PRELOADED_SCRIPT_BRAIN(Entity entity, const char* scriptName, int scriptStackSize, BOOL p3); // 0x4E4507CC5E4DB869 b1207

Parameters

#NameType
1entityEntity
2scriptNameconst char*
3scriptStackSizeint
4p3BOOL

Facts

Facts about _START_PRELOADED_SCRIPT_BRAIN
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.

Lua
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)
JavaScript
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)
C#
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
);
All BRAIN natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.