Garry's Mod Wiki

print

  print( vararg args )

Description

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

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

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

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!