GET_THREAD_EXISTENCE_DETAILS
Writes whether the thread threadId exists and whether it has a script handler into threadExists and hasScriptHandler.
Signature
void GET_THREAD_EXISTENCE_DETAILS(int threadId, BOOL* threadExists, BOOL* hasScriptHandler); // 0xD92FA81B64920E85 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | threadId | int |
| 2 | threadExists | BOOL* (out pointer) |
| 3 | hasScriptHandler | BOOL* (out pointer) |
Facts
| 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.
local threadExists, hasScriptHandler = Citizen.InvokeNative(0xD92FA81B64920E85, -- GET_THREAD_EXISTENCE_DETAILS
0, -- int threadId
Citizen.PointerValueInt(), -- BOOL* threadExists
Citizen.PointerValueInt() -- BOOL* hasScriptHandler
)
print(threadExists, hasScriptHandler)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)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>();Related SCRIPT natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.