Execute a function on a repeating timer (SOLVED)

Little problem sir i can’t use it combining with repeated timer. It show nil.

hi britzl, can you post the cancel_id() function? I have the gist lua file but it is not there. :frowning:

Sure, I’ve updated the gist: Timer module that can be used to get a callback when a certain amount of time has elapsed · GitHub

2 Likes

thanks a lot!

Btw, remember that there’s a native extension timer now as well.