Skip to content

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.

function OnPlayerVoiceStart(pid)
-- ...
end
Parameter Type
pid number who speaks
function OnPlayerVoiceStart(pid)
SetPlayerNameplate(pid, "* " .. GetPlayerName(pid))
end
function OnPlayerVoiceStop(pid)
SetPlayerNameplate(pid, "")
end

OnPlayerVoiceStop · IsPlayerTalking · the Voice chat group of the index