The Lab
SCRIPT native

START_NEW_SCRIPT

returns int2 paramsbuild 1207

Starts a new thread running the loaded script scriptName with the given stackSize, and returns its thread id.

Signature

C
int START_NEW_SCRIPT(const char* scriptName, int stackSize); // 0xE81651AD79516E48 b1207

Parameters

#NameType
1scriptNameconst char*
2stackSizeint

Facts

Facts about START_NEW_SCRIPT
Name
START_NEW_SCRIPT
Hash
0xE81651AD79516E48
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(0xE81651AD79516E48, -- START_NEW_SCRIPT
  "text", -- const char* scriptName
  0, -- int stackSize
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xE81651AD79516E48", // START_NEW_SCRIPT
  "text", // const char* scriptName
  0, // int stackSize
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xE81651AD79516E48, // START_NEW_SCRIPT
  "text", // const char* scriptName
  0 // int stackSize
);
All SCRIPT natives

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