IS_THREAD_EXIT_REQUESTED
Returns true if another script has asked the current thread to exit.
Check it in your main loop to shut down cleanly.
Signature
BOOL IS_THREAD_EXIT_REQUESTED(); // 0x9E4EF615E307FBBE b1207Parameters
This native takes no parameters.
Facts
| Name | IS_THREAD_EXIT_REQUESTED |
|---|---|
| Hash | 0x9E4EF615E307FBBE |
| 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(0x9E4EF615E307FBBE) -- IS_THREAD_EXIT_REQUESTED
if result then
-- ...
endconst result = Citizen.invokeNative("0x9E4EF615E307FBBE", // IS_THREAD_EXIT_REQUESTED
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x9E4EF615E307FBBE); // IS_THREAD_EXIT_REQUESTEDRelated SCRIPT natives
- _IS_THREAD_EXIT_REQUESTED_FOR_THREAD_WITH_THIS_ID
- IS_THREAD_ACTIVE
- _GET_THREAD_EXIT_REASON
- _REQUEST_THREAD_EXIT
- _REQUEST_THREAD_EXIT_FOR_ALL_THREADS_WITH_THIS_NAME
- SCRIPT_THREAD_ITERATOR_GET_NEXT_THREAD_ID
- IS_LOADING_SCREEN_VISIBLE
- _GET_HASH_OF_THREAD
- _IS_ANY_PLAYER_BIT_SET
- _IS_BACKGROUND_SCRIPT
- _IS_GOAL_CONTEXT_ACTIVE
- _IS_PLAYER_BIT_SET_AT_INDEX
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.