alt.log
Used to log a string, object, number, or pretty much anything to the console.
If you get [Object object]
then you should wrap the content inside of the log with JSON.stringify(someVariable, null, '\t')
.
Declaration
alt.log(...args: any[]): void
Usage
alt.log('Hello World');
Real World Example
alt.log('This console log is white in the console!');
These examples assume you have imported alt
from alt-client
.