Garry's Mod Wiki

timer.Adjust

  boolean timer.Adjust( any identifier, number delay, number repetitions = nil, function func = nil )

Description

Adjusts a previously created (timer.Create) timer with the given identifier.

Arguments

1 any identifier
Identifier of the timer to adjust.
2 number delay
The delay interval in seconds. Must be specified.
3 number repetitions = nil
Repetitions. Use 0 for infinite or nil to keep previous value.
4 function func = nil
The new function. Use nil to keep previous value.

Returns

1 boolean
true if succeeded.