rconsolewarn Synchronous
consolewarn
Write a warning message to the script console. The supplied value is converted to text. Use it for a recoverable problem, such as falling back to default settings, while the script continues.
Luau
rconsolewarn(data: any, async: boolean?) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
data | any | Value to stringify and display. |
async | boolean? | Optional compatibility flag. It is validated as a boolean but does not schedule asynchronous output. |
Returns
()This function returns no values.
Example
Luau
rconsoleshow()
rconsolewarn("No preferences file; using defaults.")