Skip to content

onPlayerChat

KabanFriends edited this page Nov 27, 2022 · 1 revision

function: onPlayerChat(event)

A function that is called when a player sends a chat message.
The event object contains following fields:

player : Player

  • The Player that triggered this event.

message : string

  • The chat message that the player sent.

cancel()

  • Cancels the event. Chat message will not be sent if the event is cancelled.