# isPlayerTalking (Client)

> Tells whether a player is speaking on voice chat, as this client sees it.

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

## Syntax

```lua
bool isPlayerTalking(player player)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `player` | `player` | The player. |

## Returns

For the local player, `true` while they hold the talk key (N). For another player, `true` while their voice reaches this client. Also `false` if `onClientPlayerVoiceStart` was cancelled for this speech.

## Example

```lua
addEventHandler("onClientRender", root, function()
    if isPlayerTalking(localPlayer) then
        dxDrawText("Talking", 20, 400)
    end
end)
```

## See also

- [isPlayerTalking (Server)](https://wiki.mymp.gg/en/isPlayerTalking-server.md): Tells whether a player is speaking on voice chat.
- [onClientPlayerVoiceStart (Client)](https://wiki.mymp.gg/en/onClientPlayerVoiceStart.md): Fired on this client when a player starts speaking on voice chat: the local player when they press the talk key, or another player when their voice arrives.
- [onClientPlayerVoiceStop (Client)](https://wiki.mymp.gg/en/onClientPlayerVoiceStop.md): Fired on this client when a player stops speaking on voice chat.
