The Lab
BRAIN native

_START_SCRIPT_BRAIN

returns int6 paramsbuild 1207

Based on its name and signature, here is our best reading:

Appears to start the brain script scriptName on entity and return a thread id. Several parameters are undocumented.

Signature

C
int _START_SCRIPT_BRAIN(Entity entity, const char* scriptName, int p2, Any* p3, int p4, BOOL p5); // 0x6F62FAE266DCFC81 b1207

Parameters

#NameType
1entityEntity
2scriptNameconst char*
3p2int
4p3Any* (out pointer)
5p4int
6p5BOOL

Facts

Facts about _START_SCRIPT_BRAIN
Name
_START_SCRIPT_BRAIN
Hash
0x6F62FAE266DCFC81
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, p3 = Citizen.InvokeNative(0x6F62FAE266DCFC81, -- _START_SCRIPT_BRAIN
  PlayerPedId(), -- Entity entity
  "text", -- const char* scriptName
  0, -- int p2
  Citizen.PointerValueInt(), -- Any* p3
  0, -- int p4
  false, -- BOOL p5
  Citizen.ResultAsInteger()
)
print(result, p3)
JavaScript
const [result, p3] = Citizen.invokeNative("0x6F62FAE266DCFC81", // _START_SCRIPT_BRAIN
  PlayerPedId(), // Entity entity
  "text", // const char* scriptName
  0, // int p2
  Citizen.pointerValueInt(), // Any* p3
  0, // int p4
  false, // BOOL p5
  Citizen.resultAsInteger()
);
console.log(result, p3)
C#
var p3Arg = new OutputArgument();
int result = Function.Call<int>((Hash)0x6F62FAE266DCFC81, // _START_SCRIPT_BRAIN
  API.PlayerPedId(), // Entity entity
  "text", // const char* scriptName
  0, // int p2
  p3Arg, // Any* p3
  0, // int p4
  false // BOOL p5
);
int p3 = p3Arg.GetResult<int>();
All BRAIN natives

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