messageClient
Jump to navigation
Jump to search
Function Server Only
![]()
Online and Offline
Available since Server 1.0.0
void messageClient(string message, Client client, [ int colour = COLOUR_LIME ])
The messageClient function is used to add a message to the chat box for only one client.
Parameters
| 1) | string | message | The message to display in the chat box. |
| 2) | Client | client | The client to send the chat message to. |
| 3) | int | colour | Optional, defaults to COLOUR_LIME. The text colour for the message. |
Return
| void | This function doesn't return a value. |
Notes
Examples
Example 1 - JavaScript - Server-Side:
addCommandHandler("message1", (command, text, client) =>
{
if (client.player)
{
messageClient('You are spawned!', client);
}
else
{
messageClient('You are not spawned!', client);
}
});
Compatibility
There isn't any compatibility information for this function.
Related
Server Related
message
messageAllExcept
messageClient