# isSoundPaused (Shared)

> Tells whether a sound is paused.

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

## Syntax

```lua
bool isSoundPaused(sound sound)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `sound` | `sound` | The `sound` element. On the client a `dui` element also works, for the browser's sound. |

## Returns

`true` if it is paused, `false` if it is playing or the sound was not found.

## Example

```lua
if isSoundPaused(music) then
    setSoundPaused(music, false)
end
```

## See also

- [setSoundPaused (Shared)](https://wiki.mymp.gg/en/setSoundPaused.md): Pauses or resumes a sound. On the server, the change is sent to every client.
- [getSoundPosition (Shared)](https://wiki.mymp.gg/en/getSoundPosition.md): Returns the point in the track the sound is playing.
