PlayerStopTalking: Difference between revisions

From RAGE Multiplayer Wiki
(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:
== C# Syntax ==
{{ClientsideCsJsEvent}}
{{CSharp}}
This event is called when the player stops talking
<syntaxhighlight lang="C#">
 
{{CSharpContainer|
<syntaxhighlight lang="c#">
public void OnPlayerStopTalking(player){}
public void OnPlayerStopTalking(player){}
</syntaxhighlight>
</syntaxhighlight>


=== Parameters ===
{{Parameters}}
* '''player''': The player that was talking, expects <span style="color: #408DAE"><b>RAGE.Elements.Player</b></span> type.
* '''player''': The player that was talking, expects '''RAGE.Elements.Player''' type.


=== Examples ===
{{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

 C#  JavaScript


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");
}