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

Function

isWorldSoundEnabled

ServerWorldIdentical to MTA:SA

Returns whether a world sound was not muted with setWorldSoundEnabled (also checks muting of the whole group).

Syntax

bool isWorldSoundEnabled(int group [, int index = -1])

Arguments

groupint
Group number.
indexint, optional = -1
Sound index, or -1.

Returns

true when the sound is enabled.

Example

outputDebugString(tostring(isWorldSoundEnabled(5, -1)))

See also