# CFX::MUMBLE_GET_VOICE_CHANNEL_FROM_SERVER_ID

- **Hash:** `0x221C09F1`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `MumbleGetVoiceChannelFromServerId`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/MUMBLE_GET_VOICE_CHANNEL_FROM_SERVER_ID

## Signature

```c
int MUMBLE_GET_VOICE_CHANNEL_FROM_SERVER_ID(int serverId);
```

## Parameters

- `serverId` (`int`) — The player's server id.

## Returns

`int` — Int representing the identifier of the voice channel.

## Description

*Source: Cfx.re native reference*

Returns the mumble voice channel from a player's server id.

## Usage

### Lua

```lua
local retval = MumbleGetVoiceChannelFromServerId(serverId)

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

### JavaScript

```js
const retval = MumbleGetVoiceChannelFromServerId(serverId);

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

### C#

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

*Sources: Cfx.re native reference.*
