Garry's Mod Wiki

Garry's Mod Wiki

  print( ... )

Description

Writes every given argument to the console. Automatically attempts to convert each argument to a string. (See tostring)

Separates lines with a line break ("\n")

Separates arguments with a tab character ("\t").

Can only print up to 4096 characters at a time, and will stop at NULL character. ("\0")

See Msg for alternative that doesn't force add a new line, and MsgC for adding colored text to the console.

Arguments

1 vararg args
List of values to print.

Example

Prints "Hello World! Yay!" to the console.

print("Hello World!", "Yay!")
Output:
Hello World! Yay!

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 four times a day. Edits and history are not available.

Last Parsed: Loading...