# isSoundLooped (Shared)

> Tells whether a sound plays again when it reaches its end.

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

## Syntax

```lua
bool isSoundLooped(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 loops, `false` if it does not or the sound was not found.

## Example

```lua
outputDebugString(isSoundLooped(music) and "looping" or "plays once")
```

## See also

- [setSoundLooped (Shared)](https://wiki.mymp.gg/en/setSoundLooped.md): Turns looping on or off for a sound. On the server, the change is sent to every client.
