ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setSoundPan

Function

setSoundPan

ClientAudioIdentical to MTA:SA

Sets the sound's balance between speakers: -1 left, 0 centre, 1 right.

Syntax

bool setSoundPan(sound theSound, float pan)

Arguments

theSoundsound
The sound.
panfloat
A value from -1 to 1.

Returns

true on success.

Example

setSoundPan(sound, -1)

Notes

Does not work with playSound sounds. In the current version the function does not accept sound elements and returns false.

See also