Skip to content

ESX.SetTimeout

1
ESX.SetTimeout(msec, cb)

This function sets a timeout requiring two arguments, msec (milliseconds), and cb (callback).

ESX.SetTimeout Example

1
2
3
local id = ESX.SetTimeout(5000, function()
    print('foo')
end)