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

Function

getSoundVolume

ClientSound (client)Identical to MTA:SA

Returns the volume set by script (ignores distance and the player's slider).

Syntax

float getSoundVolume(sound theSound)

Arguments

theSoundsound
The sound.

Returns

The volume or false.

Example

setSoundVolume(music, getSoundVolume(music) + 0.1)

See also