Timer2 - easy timer! 
6 comments i was bored so.. might aswell upload something?
this lua doesent actually do anything, it just makes timer easier by giving you an extra function
originally you use
this is messy, only allows 1 variable that ALSO must be a string, nothing else, making usage VERY limited
so instead i created this!
you dont need another function, you just send it as argument into timer2, secondly multiple arguments of ANY types can be sent through
i used this hundreds of times, and i hope it will server you all developers well, if you got questions, ask me
ps. dont forget to dofile it

this lua doesent actually do anything, it just makes timer easier by giving you an extra function
originally you use
Code:
1
2
3
4
2
3
4
timer(1000,"myFunction",id)
function myFunction(id)
id = tonumber(id)
end
function myFunction(id)
id = tonumber(id)
end
this is messy, only allows 1 variable that ALSO must be a string, nothing else, making usage VERY limited
so instead i created this!
Code:
1
2
3
2
3
timer2(1000,{id,data},function(id,data)
end)
end)
you dont need another function, you just send it as argument into timer2, secondly multiple arguments of ANY types can be sent through
i used this hundreds of times, and i hope it will server you all developers well, if you got questions, ask me

ps. dont forget to dofile it

Comments
6 comments



Log in!
You need to log in to be able to write comments!Log in
That's quite useful, good job though I won't gonna leave a like because I don't have any use of it at the moment.

I think this has been made before.
Timer Extra function(timerEx) v4.0 (12)
I'm still giving a like because it uses better syntax for creating timers.


I'm still giving a like because it uses better syntax for creating timers.



