Advertisement
igromanru

Timer

May 8th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. [ENABLE]
  2. {$lua}
  3. if syntaxcheck then return end
  4.  
  5. timer = createTimer()
  6. timer.Interval = 5000
  7. timer.OnTimer = function(timer)
  8.   showMessage("it's time")
  9. end
  10.  
  11. [DISABLE]
  12. {$lua}
  13. if syntaxcheck then return end
  14. timer.destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement