ReferenceConsole and output

warn

Writes values as a warning.

Syntax

warn(...: any) -> ()

Parameters

ParameterTypeDescription
...anyValues to display.

Description

Values are converted to text using the usual tostring behavior. Apex routes submitted-script output according to its Output capture setting, while rconsole messages use their own API. Printing a value does not serialize a table’s complete contents or execute a function.

Example

warn("Example", 42, true)

These are Game executor contracts. Check build requirements and session lifetimes before using them.