isPlayerTalking
Client
Tells whether a player is speaking on voice chat, as this client sees it.
Also exists on the server, with its own implementation: isPlayerTalking
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
addEventHandler("onClientRender", root, function()
if isPlayerTalking(localPlayer) then
dxDrawText("Talking", 20, 400)
end
end)