onClientPlayerVoiceStart
ClientEventCancellable
Fired on this client when a player starts speaking on voice chat: the local player when they press the talk key, or another player when their voice arrives.
addEventHandler("onClientPlayerVoiceStart", root, function() … end)
Source
The player who started speaking.
Cancelling it for the local player keeps their voice from being sent. Cancelling it for another player makes this client not hear that speech.
Example
local muted = {}
addEventHandler("onClientPlayerVoiceStart", root, function()
if muted[source] then
cancelEvent()
end
end)