Garry's Mod Wiki

Garry's Mod Wiki

  Msg( ... )

Description

Writes every given argument to the console.

Automatically attempts to convert each argument to a string. (See tostring)

Unlike print, arguments are not separated by anything. They are simply concatenated.

Additionally, a newline isn't added automatically to the end, so subsequent Msg or print operations will continue the same line of text in the console. See MsgN for a version that does add a newline.

The text is blue on the server, orange on the client, and green on the menu:

Arguments

1 vararg args
List of values to print.

Example

Prints "Hello World!" to the console.

Msg("Hello", " World!")
Output: Hello World!

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...