# CFX::SET_ROUTING_BUCKET_POPULATION_ENABLED

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

## Signature

```c
void SET_ROUTING_BUCKET_POPULATION_ENABLED(int bucketId, BOOL mode);
```

## Parameters

- `bucketId` (`int`) — The routing bucket ID to adjust.
- `mode` (`BOOL`) — `true` to enable population, `false` to disable population.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Sets whether or not the specified routing bucket has automatically-created population enabled.

## Usage

### Lua

```lua
SetRoutingBucketPopulationEnabled(bucketId, mode)

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

### JavaScript

```js
SetRoutingBucketPopulationEnabled(bucketId, mode);

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

### C#

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

*Sources: Cfx.re native reference.*
