RedM Natives

BG_END_CONTEXT

Deletes the given context from the background scripts context map.

Hash0x3ABF7BA1C3E2C8CF
Runtime nameBgEndContext
NamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xDC2BACD920D0A0DD

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

Signature

void BG_END_CONTEXT(const char* contextName);

Parameters

NameTypeDescription
contextNameconst char*—

Returns void

Description

Deletes the given context from the background scripts context map.

Usage

Lua
BgEndContext(contextName)

-- always works, by hash
Citizen.InvokeNative(0x3ABF7BA1C3E2C8CF, contextName)
JavaScript and C#
JavaScript
BgEndContext(contextName);

// by hash
Citizen.invokeNative('0x3ABF7BA1C3E2C8CF', contextName);
C#
Function.Call((Hash)0x3ABF7BA1C3E2C8CF, contextName);

Sources

alloc8or RDR3 NativeDB

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