RedM Natives

IS_THREAD_ACTIVE

Hash0x46E9AE36D8FA6417
Runtime nameIsThreadActive
NamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x46E9AE36D8FA6417

Signature

BOOL IS_THREAD_ACTIVE(int threadId, BOOL ignoreKilledState);

Parameters

NameTypeDescription
threadIdint—
ignoreKilledStateBOOL—

Returns BOOL

Usage

Lua
local retval = IsThreadActive(threadId, ignoreKilledState)

-- always works, by hash
local retval = Citizen.InvokeNative(0x46E9AE36D8FA6417, threadId, ignoreKilledState, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsThreadActive(threadId, ignoreKilledState);

// by hash
const retval = Citizen.invokeNative('0x46E9AE36D8FA6417', threadId, ignoreKilledState, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x46E9AE36D8FA6417, threadId, ignoreKilledState);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.