Skip to main content

Player::setVoiceFxDistortion

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.setVoiceFxDistortion(fxHandle, {
fGain,
fEdge,
fPostEQCenterFrequency,
fPostEQBandwidth,
fPreLowpassCutoff
});

Required Arguments​

  • fxHandle: int The effect handle.
  • fGain: float Amount of signal change after distortion, in the range from -60 through 0. The default value is 0 dB.
  • fEdge: float Percentage of distortion intensity, in the range in the range from 0 through 100. The default value is 50 percent.
  • fPostEQCenterFrequency: float Center frequency of harmonic content addition, in the range from 100 through 8000. The default value is 4000 Hz.
  • fPostEQBandwidth: float Width of frequency band that determines range of harmonic content addition, in the range from 100 through 8000. The default value is 4000 Hz.
  • fPreLowpassCutoff: float Filter cutoff for high-frequency harmonics attenuation, in the range from 100 through 8000. The default value is 4000 Hz.