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

Function

getSoundMaxDistance

ClientSound (client)Identical to MTA:SA

Returns the distance from which a 3D sound can no longer be heard.

Syntax

float getSoundMaxDistance(sound theSound)

Arguments

theSoundsound
The sound.

Returns

Metres or false.

Example

outputChatBox("Słychać do " .. getSoundMaxDistance(siren) .. " m")

See also