OnPlayerVoiceStart
A player started speaking.
Their first voice frame of a burst reached the server. IsPlayerTalking answers true from here until
OnPlayerVoiceStop. A muted player never triggers it (their frames are dropped before the relay). A quiet
push-to-talk press that sends no sound (the codec drops silence) does not either.
Syntax
Section titled “Syntax”function OnPlayerVoiceStart(pid) -- ...end| Parameter | Type | |
|---|---|---|
pid |
number | who speaks |
Example
Section titled “Example”function OnPlayerVoiceStart(pid) SetPlayerNameplate(pid, "* " .. GetPlayerName(pid))endfunction OnPlayerVoiceStop(pid) SetPlayerNameplate(pid, "")endSee also
Section titled “See also”OnPlayerVoiceStop · IsPlayerTalking · the Voice chat group of the index
