PlayerStopTalking: Difference between revisions
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
{{CSharpContainer| | {{CSharpContainer| | ||
<syntaxhighlight lang="c#"> | <syntaxhighlight lang="c#"> | ||
public void | public delegate void OnPlayerStopTalkingDelegate(Player player); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 11: | Line 11: | ||
{{Example}} | {{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. | ||
Revision as of 00:28, 29 November 2018
Client-Side Event
This event is called when the player stops talking
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");
}