- Documentation
- Server events
- onPlayerVoiceStop
Event
onPlayerVoiceStop
A player stopped talking through voice chat. It also happens when the player's voice stopped arriving (e.g. a lost connection). It does not happen for an utterance blocked in onPlayerVoiceStart.
Handler
addEventHandler("onPlayerVoiceStop", root, function() ... end)Source
source is the player.
Example
addEventHandler("onPlayerVoiceStop", root, function()
outputServerLog(getPlayerName(source) .. " skończył mówić")
end)
See also
onPlayerVoiceStartA player started talking through voice chat (start of an utterance). You can block it: then nobody hears this utterance until the player stops talking.isPlayerTalkingChecks whether a player is talking through voice chat right now. On the client, for the local player it means their microphone is transmitting.