The Lab
SCRIPT native

GET_THREAD_EXISTENCE_DETAILS

returns void3 paramsbuild 1207

Writes whether the thread threadId exists and whether it has a script handler into threadExists and hasScriptHandler.

Signature

C
void GET_THREAD_EXISTENCE_DETAILS(int threadId, BOOL* threadExists, BOOL* hasScriptHandler); // 0xD92FA81B64920E85 b1207

Parameters

#NameType
1threadIdint
2threadExistsBOOL* (out pointer)
3hasScriptHandlerBOOL* (out pointer)

Facts

Facts about GET_THREAD_EXISTENCE_DETAILS
Name
GET_THREAD_EXISTENCE_DETAILS
Hash
0xD92FA81B64920E85
Namespace
Returns
void
Game build
1207

Examples

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

Lua
local threadExists, hasScriptHandler = Citizen.InvokeNative(0xD92FA81B64920E85, -- GET_THREAD_EXISTENCE_DETAILS
  0, -- int threadId
  Citizen.PointerValueInt(), -- BOOL* threadExists
  Citizen.PointerValueInt() -- BOOL* hasScriptHandler
)
print(threadExists, hasScriptHandler)
JavaScript
const [threadExists, hasScriptHandler] = Citizen.invokeNative("0xD92FA81B64920E85", // GET_THREAD_EXISTENCE_DETAILS
  0, // int threadId
  Citizen.pointerValueInt(), // BOOL* threadExists
  Citizen.pointerValueInt() // BOOL* hasScriptHandler
);
console.log(threadExists, hasScriptHandler)
C#
var threadExistsArg = new OutputArgument();
var hasScriptHandlerArg = new OutputArgument();
Function.Call((Hash)0xD92FA81B64920E85, // GET_THREAD_EXISTENCE_DETAILS
  0, // int threadId
  threadExistsArg, // BOOL* threadExists
  hasScriptHandlerArg // BOOL* hasScriptHandler
);
bool threadExists = threadExistsArg.GetResult<bool>();
bool hasScriptHandler = hasScriptHandlerArg.GetResult<bool>();
All SCRIPT natives

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