OnPlayerVoiceStop: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Server event}} __NOTOC__ <div style="border: 1px dotted blue; background: #00CC66;padding:4px;margin-bottom:2px;">'''Note''': This event should only be used as a low-level fu...")
 
mNo edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Server event}}
{{Server event}}
__NOTOC__  
__NOTOC__  
<div style="border: 1px dotted blue; background: #00CC66;padding:4px;margin-bottom:2px;">'''Note''':  This event should only be used as a low-level function for advanced users.  For typical Voice scripting, please see the [[Resource:Voice|Voice Resource]]</div>
This event is triggered when a player stops talking through voice chat.
This event is triggered when a player stops talking through voice chat.
{{Important Note|This event should only be used as a low-level function for advanced users.  For typical Voice scripting, please see the [[Resource:Voice|Voice Resource]]}}


==Parameters==
==Parameters==
Line 11: Line 11:


==Example==  
==Example==  
This page lacks an example
This example outputs to the world that the player stopped talking.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">addEventHandler("onPlayerVoiceStop",root,function()
--ADD AN EXAMPLE
outputChatBox(getPlayerName(source).." has stopped talking.",root)
end)
</syntaxhighlight>
</syntaxhighlight>


[[Category:Needs_Example]]
{{See also/Server event|Player events}}
{{See also/Server event|Player events}}

Latest revision as of 06:01, 11 August 2019

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

[[{{{image}}}|link=|]] Important Note: This event should only be used as a low-level function for advanced users. For typical Voice scripting, please see the Voice Resource

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