Skip to main content

Player::setVoiceFxVolume

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.

Syntax​

player.setVoiceFxVolume(fxHandle, {
fTarget,
fCurrent,
fTime,
lCurve
});

Required Arguments​

  • fxHandle: int The effect handle.
  • fTarget: float The new volume level... 0 = silent, 1.0 = normal, above 1.0 = amplification. The default value is 1.
  • fCurrent: float The current volume level... -1 = leave existing current level when setting parameters. The default value is 1.
  • fTime: float The time to take to transition from the current level to the new level, in seconds. The default value is 0.
  • lCurve: int The curve to use in the transition... 0 = linear, 1 = logarithmic. The default value is 0.