_IS_THREAD_EXIT_REQUESTED_FOR_THREAD_WITH_THIS_ID
Returns true if an exit has been requested for the thread threadId.
Signature
BOOL _IS_THREAD_EXIT_REQUESTED_FOR_THREAD_WITH_THIS_ID(int threadId); // 0x30BED53646C86D11 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | threadId | int |
Facts
| Name | _IS_THREAD_EXIT_REQUESTED_FOR_THREAD_WITH_THIS_ID |
|---|---|
| Hash | 0x30BED53646C86D11 |
| 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(0x30BED53646C86D11, -- _IS_THREAD_EXIT_REQUESTED_FOR_THREAD_WITH_THIS_ID
0 -- int threadId
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x30BED53646C86D11", // _IS_THREAD_EXIT_REQUESTED_FOR_THREAD_WITH_THIS_ID
0, // int threadId
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x30BED53646C86D11, // _IS_THREAD_EXIT_REQUESTED_FOR_THREAD_WITH_THIS_ID
0 // int threadId
);Related SCRIPT natives
- _REQUEST_THREAD_EXIT_FOR_ALL_THREADS_WITH_THIS_NAME
- IS_THREAD_EXIT_REQUESTED
- GET_ID_OF_THIS_THREAD
- SCRIPT_THREAD_ITERATOR_GET_NEXT_THREAD_ID
- _GET_THREAD_EXIT_REASON
- _REQUEST_THREAD_EXIT
- GET_NUMBER_OF_THREADS_RUNNING_THE_SCRIPT_WITH_THIS_HASH
- IS_THREAD_ACTIVE
- TERMINATE_THIS_THREAD
- _IS_ANY_PLAYER_BIT_SET
- _IS_BACKGROUND_SCRIPT
- _IS_GOAL_CONTEXT_ACTIVE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.