ESX.SetTimeout

1
ESX.SetTimeout(msec, cb)

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

ESX.SetTimeout Exemplo

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