Garry's Mod Wiki

Revision Difference

timer.Adjust#528728

<function name="Adjust" parent="timer" type="libraryfunc"> <description>Adjusts the timer if the timer with the given identifier exists.</description> <realm>Shared and Menu</realm> <args> <arg name="identifier" type="any">Identifier of the timer to adjust.</arg> <arg name="delay" type="number">The delay interval in seconds. Must be specified.</arg>⤶ <arg name="repetitions" type="number">Repetitions. Use 0 for infinite. Use nil to keep previous value.</arg> <arg name="func" type="function">The new function. Use nil to keep previous value.</arg> <arg name="delay" type="number">The delay interval in seconds. **Must be specified.**</arg>⤶ <arg name="repetitions" type="number">Repetitions. Use `0` for infinite or `nil` to keep previous value.</arg> <arg name="func" type="function">The new function. Use `nil` to keep previous value.</arg> </args> <rets> <ret name="" type="boolean">true if succeeded</ret>⤶ <ret name="" type="boolean">`true` if succeeded.</ret>⤶ </rets> </function>