alt.isMenuOpen

Used to check if the console or user interface is open.

Returns a boolean. (true / false)

Declaration

alt.isMenuOpen(): boolean

Usage

const result = alt.isMenuOpen();

Real World Example

const result = alt.isMenuOpen();

if (result) {
    console.log(`Menu is open!`);
} else {
    console.log(`Menu is not open.`);
}

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

results matching ""

    No results matching ""