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

Function

getSoundPan

ClientAudioIdentical to MTA:SA

Returns the sound's balance between speakers (-1 to 1).

Syntax

float getSoundPan(sound theSound)

Arguments

theSoundsound
The sound.

Returns

The balance or false.

Example

outputChatBox(tostring(getSoundPan(sound)))

Notes

Does not work with playSound sounds. In the current version the function returns false.

See also