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

Function

getSoundMinDistance

ClientSound (client)Identical to MTA:SA

Returns a 3D sound's full-volume distance.

Syntax

float getSoundMinDistance(sound theSound)

Arguments

theSoundsound
The sound.

Returns

Metres or false.

Example

outputChatBox("Pełna głośność do " .. getSoundMinDistance(radio) .. " m")

See also