BG_IS_EXITFLAG_SET
Returns true if GtaThread+0x77C is equal to 1.
Hash
0x2238EC3EC631AB1FRuntime name
BgIsExitflagSetNamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x836B62713E0534CANot 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
local retval = BgIsExitflagSet()
-- always works, by hash
local retval = Citizen.InvokeNative(0x2238EC3EC631AB1F, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = BgIsExitflagSet();
// by hash
const retval = Citizen.invokeNative('0x2238EC3EC631AB1F', Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x2238EC3EC631AB1F);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.