IS_THREAD_ACTIVE
Returns true if the thread threadId is active. ignoreKilledState controls whether threads that are being killed still count.
Signature
BOOL IS_THREAD_ACTIVE(int threadId, BOOL ignoreKilledState); // 0x46E9AE36D8FA6417 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | threadId | int |
| 2 | ignoreKilledState | BOOL |
Facts
| Name | IS_THREAD_ACTIVE |
|---|---|
| Hash | 0x46E9AE36D8FA6417 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x46E9AE36D8FA6417, -- IS_THREAD_ACTIVE
0, -- int threadId
false -- BOOL ignoreKilledState
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x46E9AE36D8FA6417", // IS_THREAD_ACTIVE
0, // int threadId
false, // BOOL ignoreKilledState
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x46E9AE36D8FA6417, // IS_THREAD_ACTIVE
0, // int threadId
false // BOOL ignoreKilledState
);Related SCRIPT natives
- IS_THREAD_EXIT_REQUESTED
- _IS_THREAD_EXIT_REQUESTED_FOR_THREAD_WITH_THIS_ID
- _IS_GOAL_CONTEXT_ACTIVE
- SCRIPT_THREAD_ITERATOR_GET_NEXT_THREAD_ID
- IS_LOADING_SCREEN_VISIBLE
- _GET_HASH_OF_THREAD
- _GET_THREAD_EXIT_REASON
- _IS_ANY_PLAYER_BIT_SET
- _IS_BACKGROUND_SCRIPT
- _IS_PLAYER_BIT_SET_AT_INDEX
- _REQUEST_THREAD_EXIT
- _REQUEST_THREAD_EXIT_FOR_ALL_THREADS_WITH_THIS_NAME
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.