The Lab
SCRIPT native

_GET_HASH_OF_THREAD

returns Hash1 parambuild 1207

Returns the script name hash of the thread threadId.

Signature

C
Hash _GET_HASH_OF_THREAD(int threadId); // 0x724CB89D35B283D0 b1207

Parameters

#NameType
1threadIdint

Facts

Facts about _GET_HASH_OF_THREAD
Name
_GET_HASH_OF_THREAD
Hash
0x724CB89D35B283D0
Namespace
Returns
Hash
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local hash = Citizen.InvokeNative(0x724CB89D35B283D0, -- _GET_HASH_OF_THREAD
  0, -- int threadId
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x724CB89D35B283D0", // _GET_HASH_OF_THREAD
  0, // int threadId
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x724CB89D35B283D0, // _GET_HASH_OF_THREAD
  0 // int threadId
);
All SCRIPT natives

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