# onPlayerVoiceStart (Server)

> Fired when a player starts speaking on voice chat. Cancelling the event makes nobody hear that speech.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Event
- **Side**: Server
- **Category**: Voice
- **Cancellable**: `cancelEvent`
- **URL**: https://wiki.mymp.gg/en/onPlayerVoiceStart

## Syntax

```lua
addEventHandler("onPlayerVoiceStart", root, function() ... end)
```

## Source

The player who started speaking.

## Example

```lua
addEventHandler("onPlayerVoiceStart", root, function()
    if getElementData(source, "jailed") then
        cancelEvent()
    end
end)
```

## See also

- [onPlayerVoiceStop (Server)](https://wiki.mymp.gg/en/onPlayerVoiceStop.md): Fired when a player stops speaking on voice chat.
- [isPlayerTalking (Server)](https://wiki.mymp.gg/en/isPlayerTalking-server.md): Tells whether a player is speaking on voice chat.
- [createVoiceChannel (Server)](https://wiki.mymp.gg/en/createVoiceChannel.md): Creates a voice channel. Players only hear each other through the channels they are in.
