nanos world API Reference Unofficial documentation
Event Shared

Chat.PlayerSubmit

Called when a player submits a message in the chat

Syntax

Lua
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