setInterval
setInterval is just LUA native delay
expect it runs infinitely every timeout
setInterval takes 2 arguments, the function and numeric timeout in seconds
setInterval returns the interval timeout ID, you can use this to stop the interval using clearInterval
Last updated
Was this helpful?