RedM Natives

MUMBLE_SET_VOLUME_OVERRIDE_BY_SERVER_ID

Overrides the output volume for a particular player with the specified server id and player name on Mumble.

Hash0xCE8E25B4
Runtime nameMumbleSetVolumeOverrideByServerId
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void MUMBLE_SET_VOLUME_OVERRIDE_BY_SERVER_ID(int serverId, float volume);

Parameters

NameTypeDescription
serverIdint

The player's server id.

volumefloat

The volume, ranging from 0.0 to 1.0 (or above).

Returns void

Description

Cfx.re native reference

Overrides the output volume for a particular player with the specified server id and player name on Mumble. This will also bypass 3D audio and distance calculations. -1.0 to reset the override.

Usage

Lua
MumbleSetVolumeOverrideByServerId(serverId, volume)

-- always works, by hash
Citizen.InvokeNative(0xce8e25b4, serverId, volume)
JavaScript and C#
JavaScript
MumbleSetVolumeOverrideByServerId(serverId, volume);

// by hash
Citizen.invokeNative('0xce8e25b4', serverId, volume + 0.0000001);
C#
Function.Call((Hash)0xce8e25b4, serverId, volume);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

Cfx.re native reference

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