# TASK::_GET_RANSACK_SCENARIO_CONTAINER_OPENING_STATE

- **Hash:** `0xB219612B5568E9EC`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `GetRansackScenarioContainerOpeningState`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **Other names:** `_GET_SCENARIO_CONTAINER_OPENING_STATE`
- **URL:** https://natives.borderlinerp.com/natives/TASK/_GET_RANSACK_SCENARIO_CONTAINER_OPENING_STATE

## Signature

```c
BOOL _GET_RANSACK_SCENARIO_CONTAINER_OPENING_STATE(Entity entity);
```

## Parameters

- `entity` (`Entity`)

## Returns

`BOOL`

## Description

Returns m_eContainerState

## Usage

### Lua

```lua
local retval = GetRansackScenarioContainerOpeningState(entity)

-- always available, by hash
local retval = Citizen.InvokeNative(0xB219612B5568E9EC, entity, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = GetRansackScenarioContainerOpeningState(entity);

// by hash
const retval = Citizen.invokeNative('0xB219612B5568E9EC', entity, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xB219612B5568E9EC, entity);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

## See also

- [TASK::_SET_RANSACK_SCENARIO_CONTAINER_OPENING_STATE](https://natives.borderlinerp.com/natives/TASK/_SET_RANSACK_SCENARIO_CONTAINER_OPENING_STATE.md) — Opens/closes containers: ChestDugUp

*Sources: alloc8or RDR3 NativeDB.*
