# CFX::SET_ROUTING_BUCKET_ENTITY_LOCKDOWN_MODE

- **Hash:** `0xA0F2201F`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `SetRoutingBucketEntityLockdownMode`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/SET_ROUTING_BUCKET_ENTITY_LOCKDOWN_MODE

## Signature

```c
void SET_ROUTING_BUCKET_ENTITY_LOCKDOWN_MODE(int bucketId, char* mode);
```

## Parameters

- `bucketId` (`int`) — The routing bucket ID to adjust.
- `mode` (`char*`) — One of aforementioned modes.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Sets the entity lockdown mode for a specific routing bucket.

Lockdown modes are:

| Mode       | Meaning                                                    |
| ---------- | ---------------------------------------------------------- |
| `strict`   | No entities can be created by clients at all.              |
| `relaxed`  | Only script-owned entities created by clients are blocked. |
| `inactive` | Clients can create any entity they want.                   |

## Usage

### Lua

```lua
SetRoutingBucketEntityLockdownMode(bucketId, mode)

-- always available, by hash
Citizen.InvokeNative(0xa0f2201f, bucketId, mode)
```

### JavaScript

```js
SetRoutingBucketEntityLockdownMode(bucketId, mode);

// by hash
Citizen.invokeNative('0xa0f2201f', bucketId, mode);
```

### C#

```csharp
Function.Call((Hash)0xa0f2201f, bucketId, mode);
```

*Sources: Cfx.re native reference.*
