rconsoleprint
Prints text to the console window.
Syntax
rconsoleprint(data: any, async?: boolean, escape?: boolean) -> ()Aliases
consoleprint
Parameters
| Parameter | Type | Description |
|---|---|---|
data | any | Value to convert with tostring and print |
async | boolean? | Yield while writing on the console task (default: true) |
escape | boolean? | 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
Related Functions
rconsoleinfo- Print info messagerconsolewarn- Print warningrconsoleerr- Print error