rconsolewarn
Prints a warning message to the console.
Syntax
rconsolewarn(data: any, async?: boolean) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
data | any | Value to format after the [WARN] prefix |
async | boolean? | 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")Related Functions
rconsoleprint- Print plain textrconsoleinfo- Print inforconsoleerr- Print error