PlayerStopTalking: Difference between revisions
(Created page with "== C# Syntax == {{CSharp}} <syntaxhighlight lang="C#"> public void OnPlayerStopTalking(player){} </syntaxhighlight> === Parameters === * '''player''': The player that was tal...") |
No edit summary |
||
| Line 1: | Line 1: | ||
{{ClientsideCsJsEvent}} | |||
{{ | This event is called when the player stops talking | ||
<syntaxhighlight lang=" | |||
{{CSharpContainer| | |||
<syntaxhighlight lang="c#"> | |||
public void OnPlayerStopTalking(player){} | public void OnPlayerStopTalking(player){} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{Parameters}} | |||
* '''player''': The player that was talking, expects | * '''player''': The player that was talking, expects '''RAGE.Elements.Player''' type. | ||
{{Example}} | |||
The example below shows a message for a player when the player previously talking, stops talking. | The example below shows a message for a player when the player previously talking, stops talking. | ||
| Line 21: | Line 23: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | |||
Revision as of 00:27, 29 November 2018
Client-Side Event
This event is called when the player stops talking
C# Syntax
public void OnPlayerStopTalking(player){}
Parameters
- player: The player that was talking, expects RAGE.Elements.Player type.
Example
The example below shows a message for a player when the player previously talking, stops talking.
RAGE.Events.OnPlayerStopTalking += OnPlayerStopTalking;
public void OnPlayerStopTalking(RAGE.Elements.Player player)
{
RAGE.Chat.Output($"Player {player.Name} stopped talking");
}