# SendMessage
TIP
sendMessage(<player>, <message>)
- Sends a message to Console, Rcon, a player, or an array of players.
- To send a message to Console, you'll need to set <player> as
'CONSOLE'
with all capital letters, to send a message to Rcon, the command must be ran in Rcon, and the message can be sent be setting <player> as'RCON'
. - To create a new line, add
\n
to the message.
# Parameters
<player>
The player(s) to send the message to as string or array<message>
The message being sent as string, int, float, array, or bool
# Example
1: sendMessage($player$, 'Hello there, ' + $player$ + '!')
2: $message$ = 'Your position: ' + $x$ + ' ' + $y$ + ' ' + $z$ + ', in the world: ' + $world$
3: sendMessage($player$, $message$)