# setSoundPosition (Shared)

> Jumps to a point in the track. The value is kept between 0 and the sound's length. On the server, the change is sent to every client.

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

## Syntax

```lua
bool setSoundPosition(sound sound, float seconds)
```

## Parameters

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

## Returns

`true` if the position changed, `false` if the sound was not found or has no length.

## Example

```lua
local music = playSound("sounds/track.mp3")
setSoundPosition(music, 42.5)
```

### Note

This is the playback position, not the position in the world. To move a 3D sound, use `setElementPosition`.

## See also

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