Event
Chat.PlayerSubmit
Called when a player submits a message in the chat
Syntax
Chat.Subscribe("PlayerSubmit", function(message, player)
-- il tuo codice
end)
Arguments
| Name | Type | Default | Description |
|---|---|---|---|
message
|
string | — | The message sent by the player |
player
|
Player | — | The player who sent the message - on client it will always be the localplayer |
Returns
- boolean Return false to prevent the message from being sent