RedM Natives

BG_START_CONTEXT

Inserts the given context into the background scripts context map.

Hash0x49BA5678BA040CA7
Runtime nameBgStartContext
NamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x9D5A25BADB742ACD

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

Signature

void BG_START_CONTEXT(const char* contextName);

Parameters

NameTypeDescription
contextNameconst char*—

Returns void

Description

Inserts the given context into the background scripts context map.

Usage

Lua
BgStartContext(contextName)

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

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

Sources

alloc8or RDR3 NativeDB

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