# CFX::GET_PLAYER_ROUTING_BUCKET

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

## Signature

```c
int GET_PLAYER_ROUTING_BUCKET(char* playerSrc);
```

## Parameters

- `playerSrc` (`char*`) — The player to get the routing bucket for.

## Returns

`int` — The routing bucket ID.

## Description

*Source: Cfx.re native reference*

Gets the routing bucket for the specified player.

Routing buckets are also known as 'dimensions' or 'virtual worlds' in past echoes, however they are population-aware.

## Usage

### Lua

```lua
local retval = GetPlayerRoutingBucket(playerSrc)

-- always available, by hash
local retval = Citizen.InvokeNative(0x52441c34, playerSrc, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetPlayerRoutingBucket(playerSrc);

// by hash
const retval = Citizen.invokeNative('0x52441c34', playerSrc, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x52441c34, playerSrc);
```

## See also

- [CFX::SET_PLAYER_ROUTING_BUCKET](https://natives.borderlinerp.com/natives/CFX/SET_PLAYER_ROUTING_BUCKET.md) — Sets the routing bucket for the specified player.

*Sources: Cfx.re native reference.*
