rconsoleprint

Prints text to the console window.

Syntax

rconsoleprint(data: any, async?: boolean, escape?: boolean) -> ()

Aliases

  • consoleprint

Parameters

ParameterTypeDescription
dataanyValue to convert with tostring and print
asyncboolean?Yield while writing on the console task (default: true)
escapeboolean?Preserve the full string length, including embedded nulls (default: true)

Returns

This function does not return a value.

Description

rconsoleprint outputs text to the console window. Unlike the other console print functions, this prints plain text without any formatting or prefix.

Example

rconsoleshow()

rconsoleprint("Hello, World!")
rconsoleprint({ answer = 42 }, false)

Notes

  • A newline is appended automatically
  • Tokens such as @@RED@@ change the console color instead of printing text