Garry's Mod Wiki

MsgC

MsgC( vararg args )

Description

Just like Msg, except it can also print colored text, just like chat.AddText.

Arguments

1 vararg args
Values to print. If you put in a color, all text after that color will be printed in that color.

Example

Prints "Hello World!" in red to the console.

MsgC( Color( 255, 0, 0 ), "Hello World!" )
Output:

Example

Shows the built in colors for server and client

MsgC( Color( 137, 222, 255 ), "Default server color" ) MsgC( Color( 255, 222, 102 ), "Default client color" )

Page Links


Special Pages


Wikis

?

Render Time: 36ms

DB GetPage 3
Generate Html 6
SaveChanges 9
Render Body 0
Render Sidebar 15