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.
Signature
void MUMBLE_SET_VOLUME_OVERRIDE_BY_SERVER_ID(int serverId, float volume);Parameters
| Name | Type | Description |
|---|---|---|
serverId | int | The player's server id. |
volume | float | The volume, ranging from 0.0 to 1.0 (or above). |
Returns void
Description
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
MumbleSetVolumeOverrideByServerId(serverId, volume)
-- always works, by hash
Citizen.InvokeNative(0xce8e25b4, serverId, volume)JavaScript and C#
MumbleSetVolumeOverrideByServerId(serverId, volume);
// by hash
Citizen.invokeNative('0xce8e25b4', serverId, volume + 0.0000001);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. 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.