Garry's Mod Wiki

print

  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")

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!