isPlayerTalking
Server
Tells whether a player is speaking on voice chat.
Also exists on the client, with its own implementation: isPlayerTalking
bool isPlayerTalking(player player)
Parameters
| Name | Type | Description |
|---|---|---|
| player | player | The player. |
Returns
true while they speak, false if they are silent or onPlayerVoiceStart was cancelled for this speech.
Example
setTimer(function()
for _, player in ipairs(getElementsByType("player")) do
setElementData(player, "talking", isPlayerTalking(player))
end
end, 500, 0)