Notice: Failed to invoke Pygments: [Called from MediaWiki\SyntaxHighlight\SyntaxHighlight::highlightInner in /home/pi/www/gtac/wiki/wiki/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php at line 334] in /home/pi/www/gtac/wiki/wiki/includes/debug/MWDebug.php on line 507

Notice: Failed to invoke Pygments: [Called from MediaWiki\SyntaxHighlight\SyntaxHighlight::highlightInner in /home/pi/www/gtac/wiki/wiki/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php at line 334] in /home/pi/www/gtac/wiki/wiki/includes/debug/MWDebug.php on line 507
message - GTA Connected

message

(Redirected from Message)

Function Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png 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.

When used client-side, the message is only shown for the local player.

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

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