Garry's Mod Wiki

History for MsgC

Revision Difference


<function name="MsgC" parent="Global" type="libraryfunc"> <description>Just like <page>Global.Msg</page>, except it can also print colored text, just like <page>chat.AddText</page>.</description> <realm>Shared and Menu</realm> <args> <arg name="args" type="vararg">Values to print. If you put in a color, all text after that color will be printed in that color.</arg> </args> </function> <example> <description>Prints "Hello World!" in red to the console.</description> <code>MsgC( Color( 255, 0, 0 ), "Hello World!" )</code> <output> }} {{Example </output> <output></output> </example> <example> <description>Shows the built in colors for server and client</description> <code> MsgC( Color( 137, 222, 255 ), "Default server color" ) MsgC( Color( 255, 222, 102 ), "Default client color" ) </code> </example>

Special Pages



Render Time: 62ms

DB GetPage 49
Get RevNew 2
Get RevOld 1
Render Body 0
Render Sidebar 8