# getSoundMinDistance (Shared)

> Returns how far a 3D sound plays at full volume.

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

## Syntax

```lua
float|false getSoundMinDistance(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

The distance in metres, or `false` if the sound was not found.

## Example

```lua
outputDebugString("Full volume up to " .. getSoundMinDistance(radio) .. " m")
```

## See also

- [setSoundMinDistance (Shared)](https://wiki.mymp.gg/en/setSoundMinDistance.md): Sets how far a 3D sound plays at full volume. The default is 5 m. On the server, the change is sent to every client.
- [getSoundMaxDistance (Shared)](https://wiki.mymp.gg/en/getSoundMaxDistance.md): Returns the distance at which a 3D sound goes silent.
