RedM Natives

MUMBLE_GET_VOICE_CHANNEL_FROM_SERVER_ID

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

Hash0x221C09F1
Runtime nameMumbleGetVoiceChannelFromServerId
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

int MUMBLE_GET_VOICE_CHANNEL_FROM_SERVER_ID(int serverId);

Parameters

NameTypeDescription
serverIdint

The player's server id.

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

Description

Cfx.re native reference

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

Usage

Lua
local retval = MumbleGetVoiceChannelFromServerId(serverId)

-- always works, by hash
local retval = Citizen.InvokeNative(0x221c09f1, serverId, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = MumbleGetVoiceChannelFromServerId(serverId);

// by hash
const retval = Citizen.invokeNative('0x221c09f1', serverId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x221c09f1, serverId);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.