RedM Natives

BG_IS_EXITFLAG_SET

Returns true if GtaThread+0x77C is equal to 1.

Hash0x2238EC3EC631AB1F
Runtime nameBgIsExitflagSet
NamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x836B62713E0534CA

Not called by the game's own scripts — behaviour may be incomplete.

Signature

BOOL BG_IS_EXITFLAG_SET();

Returns BOOL

Description

Returns true if GtaThread+0x77C is equal to 1.

Old name: _BG_EXITED_BECAUSE_BACKGROUND_THREAD_STOPPED

Usage

Lua
local retval = BgIsExitflagSet()

-- always works, by hash
local retval = Citizen.InvokeNative(0x2238EC3EC631AB1F, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = BgIsExitflagSet();

// by hash
const retval = Citizen.invokeNative('0x2238EC3EC631AB1F', Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x2238EC3EC631AB1F);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.