message: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(No difference)
|
Latest revision as of 15:25, 28 April 2020
Function
Server and Client
Online and Offline
Available since Server 1.0.0, Client 1.0.0
void message(string message, [ int colour = COLOUR_LIME ])
The message function is used to add a message to the chat box.
When used server-side, the message is shown for all players.
Parameters
1) | string | message | The message to display in the chat box. |
2) | int | colour | Optional, defaults to COLOUR_LIME. The text colour for the message. |
Return
void | This function doesn't return a value. |
Notes
- See also: messageClient and messageAllExcept.
- Server colour defines.
- Client colour defines.
Examples
Example 1 - Lua:
message("This text is shown in the chat box.", COLOUR_GREEN)
Compatibility
There isn't any compatibility information for this function.
Related
Server Related
message
messageAllExcept
messageClient
Client Related
message
setChatWindowEnabled