_GET_THREAD_EXIT_REASON
Based on its name and signature, here is our best reading:
Returns a code that appears to describe why the current thread was asked to exit.
Signature
int _GET_THREAD_EXIT_REASON(); // 0x54AE4FDEEFEAB77E b1207Parameters
This native takes no parameters.
Facts
| Name | _GET_THREAD_EXIT_REASON |
|---|---|
| Hash | 0x54AE4FDEEFEAB77E |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x54AE4FDEEFEAB77E, -- _GET_THREAD_EXIT_REASON
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x54AE4FDEEFEAB77E", // _GET_THREAD_EXIT_REASON
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x54AE4FDEEFEAB77E); // _GET_THREAD_EXIT_REASONRelated SCRIPT natives
- _IS_THREAD_EXIT_REQUESTED_FOR_THREAD_WITH_THIS_ID
- SCRIPT_THREAD_ITERATOR_GET_NEXT_THREAD_ID
- _GET_HASH_OF_THREAD
- _REQUEST_THREAD_EXIT
- _REQUEST_THREAD_EXIT_FOR_ALL_THREADS_WITH_THIS_NAME
- GET_ID_OF_THIS_THREAD
- GET_THREAD_EXISTENCE_DETAILS
- IS_THREAD_EXIT_REQUESTED
- _GET_GLOBAL_BLOCK_CAN_BE_ACCESSED
- _AWARDS_GET_UNLOCK_CLAIM_DATA
- _LOOT_GET_LOOT_CLAIM_DATA
- _LOOT_GET_RESULT_ITEM
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.