ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onPlayerVoiceStart

Event

onPlayerVoiceStart

ServerPlayersIdentical to MTA:SA

A player started talking through voice chat (start of an utterance). You can block it: then nobody hears this utterance until the player stops talking.

Handler

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

Source

source is the player.

cancelEvent() blocks this utterance for everyone.

Example

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

See also