Timer
From GMod Wiki
A module that enables timed execution of functions.
If you call a method/function with no arguements (for example, MyFunc()) then the function arguement must be nil. For example: timer.Simple(1, MyFunc, nil). (elevator)
If you want to call a function part of the self: object, you can do this: timer.Simple(1, function() self:FunctionName() end) using a dummy function.
Note: If a timer is started serverside on a dedicated server, it will only run if players are connected!
Library Functions
timer.Adjust
timer.Check
timer.Create
timer.Destroy
timer.IsTimer
timer.Pause
timer.Remove
timer.Simple
timer.Start
timer.Stop
timer.Toggle
timer.UnPause