this lua doesent actually do anything, it just makes timer easier by giving you an extra function
originally you use
1
2
3
4
2
3
4
timer(1000,"myFunction",id) 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!
1
2
3
2
3
timer2(1000,{id,data},function(id,data) 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
Approved by Yates
Download
479 b, 447 Downloads