OnPlayerVoiceStop: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
</syntaxhighlight>
</syntaxhighlight>


==See Also==
{{See also/Server event|Player events}}
===Player events===
{{Player_events}}
===Event functions===
{{Event functions}}

Revision as of 03:03, 27 September 2018

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

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

Parameters

No parameters.

Source

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

Example

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

Player events


Event functions