RedM Natives

MUMBLE_SET_VOLUME_OVERRIDE

Overrides the output volume for a particular player on Mumble.

Hash0x61C309E3
Runtime nameMumbleSetVolumeOverride
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void MUMBLE_SET_VOLUME_OVERRIDE(Player player, float volume);

Parameters

NameTypeDescription
playerPlayer

A game player index.

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 on Mumble. This will also bypass 3D audio and distance calculations. -1.0 to reset the override.

Set to -1.0 to reset the Volume override.

Usage

Lua
MumbleSetVolumeOverride(player, volume)

-- always works, by hash
Citizen.InvokeNative(0x61c309e3, player, volume)
JavaScript and C#
JavaScript
MumbleSetVolumeOverride(player, volume);

// by hash
Citizen.invokeNative('0x61c309e3', player, volume + 0.0000001);
C#
Function.Call((Hash)0x61c309e3, player, 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.