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...")
 
m (category)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
== C# Syntax ==
This event is called when the player stops talking
{{CSharp}}
 
<syntaxhighlight lang="C#">
{{ClientsideCsJsEvent}}
public void OnPlayerStopTalking(player){}
{{CSharpContainer|
<syntaxhighlight lang="c#">
public delegate void OnPlayerStopTalkingDelegate(Player 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 22:
}
}
</syntaxhighlight>
</syntaxhighlight>
}}
{{JSContainer|
to do
}}
[[Category:Client-side Event]]

Latest revision as of 13:30, 15 May 2019

This event is called when the player stops talking

Client-Side Event

 C#  JavaScript


C# Syntax

public delegate void OnPlayerStopTalkingDelegate(Player 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");
}


JavaScript Syntax

to do