alt.logWarning
Used to log an error in console. It should display with yellow text.
If you get [Object object]
then you should wrap the content inside of the log with JSON.stringify(someVariable, null, '\t')
.
Declaration
alt.logWarning(...args: any[]): void
Usage
alt.logWarning('something');
Real World Example
alt.logWarning('This console log is yellow in the console!');
These examples assume you have imported alt
from alt-server
.