Delay
From Onset Developer Wiki
Description
Delay
Syntax
Delay(Milliseconds, LuaFunction [, UserArgs])
Parameters
- Milliseconds
The interval in milliseconds. - LuaFunction
The lua function name - UserArgs (optional) (optional)
The user arguments
Return Value
- __EDIT_ME__
Example
AddEvent("OnPlayerSpawn", function(player)
SetPlayerOutline(player, true)
Delay(10000, function(player)
SetPlayerOutline(player, false)
end)
end)
See also
__EDIT_ME__