# isWorldSoundEnabled (Client)

> Tells whether a world sound, or a group of them, is on.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Sound
- **URL**: https://wiki.mymp.gg/en/isWorldSoundEnabled

## Syntax

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

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `group` | `int` | The sounds' group. |
| `index` | `int` | One sound in the group. -1 asks about the whole group. *(default: `-1`)* |

## Returns

`true` if it is on. With `index` -1, `false` if any sound in the group is off.

## Example

```lua
if not isWorldSoundEnabled(5) then
    setWorldSoundEnabled(5, true)
end
```

## See also

- [setWorldSoundEnabled (Client)](https://wiki.mymp.gg/en/setWorldSoundEnabled.md): Turns the game world's sounds (footsteps, gunfire, collisions and more) on or off by group or one by one.
- [resetWorldSounds (Client)](https://wiki.mymp.gg/en/resetWorldSounds.md): Turns back on every world sound turned off with setWorldSoundEnabled.
