# playSoundFrontEnd (Client)

> Plays one of GTA San Andreas's interface sounds, such as the menu and mission ones.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Sound
- **URL**: https://wiki.mymp.gg/en/playSoundFrontEnd-client
- **Counterpart**: Also exists on the server, with its own implementation: [playSoundFrontEnd (Server)](https://wiki.mymp.gg/en/playSoundFrontEnd-server.md)

## Syntax

```lua
bool playSoundFrontEnd(int sound)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `sound` | `int` | The interface sound's id, from 0 to 101. |

## Returns

`true` if the sound played, `false` if the id is outside 0 to 101 (with an error in the log).

## Example

```lua
addCommandHandler("ding", function()
    playSoundFrontEnd(1)
end)
```

## See also

- [playSoundFrontEnd (Server)](https://wiki.mymp.gg/en/playSoundFrontEnd-server.md): Plays a game interface sound for a player, or for every player inside an element, such as root.
- [playSound (Client)](https://wiki.mymp.gg/en/playSound-client.md): Plays a sound with no position in the world, on this client only. Fires onClientSoundStarted with the reason play.
- [playSFX (Client)](https://wiki.mymp.gg/en/playSFX.md): Plays a sound from GTA San Andreas's audio banks, with no position in the world.
