M MY Multiplayer: Wiki
Side
Kind

onPlayerVoiceStart

ServerEventCancellable

Fired when a player starts speaking on voice chat. Cancelling the event makes nobody hear that speech.

addEventHandler("onPlayerVoiceStart", root, function() … end)

Source

The player who started speaking.

Example

addEventHandler("onPlayerVoiceStart", root, function()
    if getElementData(source, "jailed") then
        cancelEvent()
    end
end)

See also