The Lab
SCRIPT native

START_NEW_SCRIPT_WITH_NAME_HASH

returns int2 paramsbuild 1207

Starts a new thread running the script with the name hash scriptHash and returns its thread id.

Signature

C
int START_NEW_SCRIPT_WITH_NAME_HASH(Hash scriptHash, int stackSize); // 0xEB1C67C3A5333A92 b1207

Parameters

#NameType
1scriptHashHash
2stackSizeint

Facts

Facts about START_NEW_SCRIPT_WITH_NAME_HASH
Name
START_NEW_SCRIPT_WITH_NAME_HASH
Hash
0xEB1C67C3A5333A92
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(0xEB1C67C3A5333A92, -- START_NEW_SCRIPT_WITH_NAME_HASH
  GetHashKey("name"), -- Hash scriptHash
  0, -- int stackSize
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xEB1C67C3A5333A92", // START_NEW_SCRIPT_WITH_NAME_HASH
  GetHashKey("name"), // Hash scriptHash
  0, // int stackSize
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xEB1C67C3A5333A92, // START_NEW_SCRIPT_WITH_NAME_HASH
  (uint)API.GetHashKey("name"), // Hash scriptHash
  0 // int stackSize
);
All SCRIPT natives

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