PlayerStopTalking: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{ClientsideCsJsEvent}}
This event is called when the player stops talking
This event is called when the player stops talking


{{ClientsideCsJsEvent}}
{{CSharpContainer|
{{CSharpContainer|
<syntaxhighlight lang="c#">
<syntaxhighlight lang="c#">
Line 22: Line 22:
}
}
</syntaxhighlight>
</syntaxhighlight>
}}
{{JSContainer|
to do
}}
}}

Revision as of 13:52, 29 November 2018

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