Files
overextended.github.io/docs/ox_lib/Cron/Server.md
T
Maciej Ratyński 8ca3c1bdfc Update for docs (#116)
* Update for docs

* More changes and fix
2023-04-21 00:07:57 +10:00

573 B

lib.cron.new

Creates a new cronjob, scheduling a task to run at fixed times or intervals.
Supports numbers, any value *, lists 1,2,3, ranges 1-3, and steps */4.
Day of the week is a range of 1-7 starting from Sunday and allows short-names (i.e. sun, mon, tue).

lib.cron.new(expression, job, options)
  • expression:
    • string A cron expression such as * * * * * representing minute, hour, day, month, and day of the week
  • job:
    • fun(task: OxTask, date: osdate)
  • options?:
    • debug?: boolean