12-23-2014, 07:51 PM
You can use the example by Seadragon91
You can reschedule it in the function itself.
function Initialize(Plugin) Plugin:SetName("MyPlugin") Plugin:SetVersion(1) local World = cRoot:Get():GetDefaultWorld() Callback = function(World) LOG(World:GetName()) World:ScheduleTask(6000, Callback) end World:ScheduleTask(10, Callback) return true end
You can reschedule it in the function itself.