onPlayerVoiceStop | Multi Theft Auto: Wiki Skip to content

onPlayerVoiceStop

Client-side
Server-side
Shared

This event is triggered when a player stops talking through voice chat.

This event should only be used as a low-level function for advanced users. For typical Voice scripting, please see the Voice Resource

Parameters

This event does not pass any parameters to the handler function.

Source

element: The source of this event is the player element that just stopped talking through voice chat.

Code Examples

server

This example outputs to the world that the player stopped talking.

addEventHandler("onPlayerVoiceStop",root,function()
outputChatBox(getPlayerName(source).." has stopped talking.",root)
end)

See Also