MUMBLE_SET_VOLUME_OVERRIDE
Overrides the output volume for a particular player on Mumble.
Signature
void MUMBLE_SET_VOLUME_OVERRIDE(Player player, float volume);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | A game player index. |
volume | float | The volume, ranging from 0.0 to 1.0 (or above). |
Returns void
Description
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
MumbleSetVolumeOverride(player, volume)
-- always works, by hash
Citizen.InvokeNative(0x61c309e3, player, volume)JavaScript and C#
MumbleSetVolumeOverride(player, volume);
// by hash
Citizen.invokeNative('0x61c309e3', player, volume + 0.0000001);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.