PlayerStartTalking

From RAGE Multiplayer Wiki
Revision as of 13:30, 15 May 2019 by RoboN1X (talk | contribs) (category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This event is called when the player starts talking

Client-Side Event

 C#  JavaScript



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


JavaScript Syntax

to do