# SCRIPT::BG_END_CONTEXT

- **Hash:** `0x3ABF7BA1C3E2C8CF`
- **Namespace:** SCRIPT
- **Runtime name (Lua/JS):** `BgEndContext`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **Note:** not used by the game's own scripts
- **URL:** https://natives.borderlinerp.com/natives/SCRIPT/BG_END_CONTEXT

## Signature

```c
void BG_END_CONTEXT(const char* contextName);
```

## Parameters

- `contextName` (`const char*`)

## Returns

`void`

## Description

Deletes the given context from the background scripts context map.

## Usage

### Lua

```lua
BgEndContext(contextName)

-- always available, by hash
Citizen.InvokeNative(0x3ABF7BA1C3E2C8CF, contextName)
```

### JavaScript

```js
BgEndContext(contextName);

// by hash
Citizen.invokeNative('0x3ABF7BA1C3E2C8CF', contextName);
```

### C#

```csharp
Function.Call((Hash)0x3ABF7BA1C3E2C8CF, contextName);
```

*Sources: alloc8or RDR3 NativeDB.*
