Jump to content

Only once time Timer


Recommended Posts

You dont need to use killTimer due to setTimer function already has an argument which allow you to execute the same function x times.

myTimer = setTimer(function()
    outputChatBox("only one time")
end, 1000, 1) --HERE IT IS, The las value '1' are the times that it is going to be executed.

For future cases, if you want to use killTimer function, be aware that you have to check first if the timer exists using the function.

isTimer()

Regards.

  • Thanks 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...