The Lab
SCRIPT native

_GET_THREAD_EXIT_REASON

returns int0 paramsbuild 1207

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

C
int _GET_THREAD_EXIT_REASON(); // 0x54AE4FDEEFEAB77E b1207

Parameters

This native takes no parameters.

Facts

Facts about _GET_THREAD_EXIT_REASON
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.

Lua
local result = Citizen.InvokeNative(0x54AE4FDEEFEAB77E, -- _GET_THREAD_EXIT_REASON
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x54AE4FDEEFEAB77E", // _GET_THREAD_EXIT_REASON
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x54AE4FDEEFEAB77E); // _GET_THREAD_EXIT_REASON
All SCRIPT natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.