setInterval

From GTA Connected
(Redirected from SetInterval)
Jump to navigation Jump to search

Function Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

Timer setInterval(function callback, int durationMilliseconds, [ ... ])

Description

The setInterval function is used to add a timer with a callback function that is invoked each time the specified duration has passed.

Parameters

Type Name Presence Default Value Description
function callback required n/a The scripting function to call when each interval has occurred.

Returns

Success Returns

Type Description
Timer A handle to the timer.

Failure Returns

Type Value
null n/a

Callbacks

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Server Related

clearImmediate
clearInterval
clearTimeout
setImmediate
setInterval
setTimeout


Client Related

clearImmediate
clearInterval
clearTimeout
setImmediate
setInterval
setTimeout