# getSoundVolume (Shared)

> Returns a sound's volume, not counting how it falls with distance.

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

## Syntax

```lua
float|false getSoundVolume(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 volume (1 is normal), or `false` if the sound was not found.

## Example

```lua
setSoundVolume(music, getSoundVolume(music) * 0.5)
```

## See also

- [setSoundVolume (Shared)](https://wiki.mymp.gg/en/setSoundVolume.md): Changes a sound's volume. On a 3D sound, it still falls with distance. On the server, the change is sent to every client.
