ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. isAmbientSoundEnabled

Function

isAmbientSoundEnabled

ServerWorldIdentical to MTA:SA

Returns whether an ambient sound type is enabled (yes by default).

Syntax

bool isAmbientSoundEnabled(string theType)

Arguments

theTypestring
"gunfire" or "general".

Returns

true when enabled.

Example

outputDebugString(tostring(isAmbientSoundEnabled("gunfire")))

See also