Garry's Mod Wiki

Revision Difference

Global.print#528469

<function name="print" parent="Global" type="libraryfunc"> <description> Writes every given argument to the console. Automatically attempts to convert each argument to a string. (See <page>Global.tostring</page>) Seperates lines with a line break (`"\n"`) Separates arguments with a tab character (`"\t"`). </description> <realm>Shared and Menu</realm> <args> <arg name="args" type="vararg">List of values to print.</arg> </args> </function> <example> <description>Prints "Hello World! Yay!" to the console.</description> <code>print("Hello World!", "Yay!")</code> <outputfixedwidth>Fixed width</outputfixedwidth>⤶ <output>Hello World! Yay!</output>⤶ <output>⤶ ```⤶ Hello World! Yay!⤶ ```⤶ </output>⤶ </example>