alt.clearNextTick
Used to clear a nextTick event before it is ran. The logic inside of the nextTick event is never executed if cleared in time.
See alt.nextTick for more information.
Declaration
alt.clearNextTick(id: number): void
Usage
alt.clearNextTick(someNextTick);
Real World Example
const someNextTick = alt.nextTick(() => {
console.log('hello world');
});
alt.clearNextTick(someNextTick);
These examples assume you have imported alt
from alt-server
.