PlayerStartTalking: Difference between revisions
No edit summary |
|||
| Line 1: | Line 1: | ||
{{ | {{ClientsideCsJsEvent}} | ||
This event is called when the player starts talking | This event is called when the player starts talking | ||
{{CSharpContainer| | |||
{{ | <syntaxhighlight lang="c#"> | ||
<syntaxhighlight lang=" | public delegate void OnPlayerStartTalkingDelegate(Player player); | ||
public void | |||
</syntaxhighlight> | </syntaxhighlight> | ||
{{Parameters}} | |||
* '''player''': The player talking, expects | * '''player''': The player talking, expects '''RAGE.Elements.Player''' type. | ||
{{Example}} | |||
The example below shows a message for a player when they begin talking. | The example below shows a message for a player when they begin talking. | ||
| Line 24: | Line 22: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | |||
Revision as of 00:24, 29 November 2018
Client-Side Event
This event is called when the player starts talking
C# Syntax
public delegate void OnPlayerStartTalkingDelegate(Player player);
Parameters
- player: The player talking, expects RAGE.Elements.Player type.
Example
The example below shows a message for a player when they begin talking.
RAGE.Events.OnPlayerStartTalking += OnPlayerStartTalking;
public void OnPlayerStartTalking(RAGE.Elements.Player player)
{
RAGE.Chat.Output($"Player {player.Name} started talking");
}