# getSoundPan (Client)

> Returns the pan of a sound with no position.

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

## Syntax

```lua
float|false getSoundPan(sound sound)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `sound` | `sound` | The `sound` element, or a `dui` element for the browser's sound. |

## Returns

A value from -1 (left) to 1 (right), or `false` if the sound is 3D or was not found.

## Example

```lua
outputDebugString("Pan: " .. getSoundPan(beep))
```

## See also

- [setSoundPan (Client)](https://wiki.mymp.gg/en/setSoundPan.md): Moves a sound with no position towards the left or the right.
