rconsolewarn

Prints a warning message to the console.

Syntax

rconsolewarn(data: any, async?: boolean) -> ()

Parameters

ParameterTypeDescription
dataanyValue to format after the [WARN] prefix
asyncboolean?Yield while writing on the console task (default: true)

Returns

This function does not return a value.

Description

rconsolewarn prints a warning-level message to the console, typically displayed in yellow or with a warning prefix.

Example

rconsoleshow()

rconsolewarn("Config file not found, using defaults")
rconsolewarn("Low memory detected")