alt.clearEveryTick

Clears a timer set with the everyTick function.

See alt.everyTick for more information.

Declaration

alt.clearEveryTick(id: number): void

Usage

alt.clearEveryTick(someEveryTick);

Real World Example

const someEveryTick = alt.everyTick(() => {
    console.log('Lots of Logging');
});

alt.clearEveryTick(someEveryTick);

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

results matching ""

    No results matching ""