alt.logError

Used to log an error in console. It should display with red text.

If you get [Object object] then you should wrap the content inside of the log with JSON.stringify(someVariable, null, '\t').

Declaration

alt.logError(...args: any[]): void

Usage

alt.logError('something');

Real World Example

alt.logError('This console log is red in the console!');

These examples assume you have imported alt from alt-client.

results matching ""

    No results matching ""