alt.clearInterval
Used to stop an interval from executing the logic inside of it.
See alt.setInterval for more information.
Declaration
alt.clearInterval(id: number): void
Usage
alt.clearInterval(someIntervalValue);
Real World Example
const someIntervalValue = alt.setInterval(() => {
alt.log('Client Says Hello!');
}, 5000);
alt.clearInterval(someIntervalValue);
These examples assume you have imported alt
from alt-client
.