GET_THREAD_EXISTENCE_DETAILS
Hash
0xD92FA81B64920E85Runtime name
GetThreadExistenceDetailsNamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
Signature
void GET_THREAD_EXISTENCE_DETAILS(int threadId, BOOL* threadExists, BOOL* hasScriptHandler);Parameters
| Name | Type | Description |
|---|---|---|
threadId | int | — |
threadExists | BOOL* | — |
hasScriptHandler | BOOL* | — |
Returns void
Usage
local threadExists, hasScriptHandler = GetThreadExistenceDetails(threadId)
-- always works, by hash
local threadExists, hasScriptHandler = Citizen.InvokeNative(0xD92FA81B64920E85, threadId, Citizen.PointerValueInt() --[[ BOOL* ]], Citizen.PointerValueInt() --[[ BOOL* ]])JavaScript and C#
const [threadExists, hasScriptHandler] = GetThreadExistenceDetails(threadId);
// by hash
const [threadExists, hasScriptHandler] = Citizen.invokeNative('0xD92FA81B64920E85', threadId, Citizen.pointerValueInt() /* BOOL* */, Citizen.pointerValueInt() /* BOOL* */);var threadExists = new OutputArgument();
var hasScriptHandler = new OutputArgument();
Function.Call((Hash)0xD92FA81B64920E85, threadId, threadExists, hasScriptHandler);
// threadExists.GetResult<bool>()
// hasScriptHandler.GetResult<bool>()- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.