Update README.md

This commit is contained in:
Jérémie N'gadi
2017-08-01 14:12:55 +02:00
committed by GitHub
parent 6971fd933f
commit d9a3409181
+38
View File
@@ -1,2 +1,40 @@
# fxserver-cron
FXServer CRON
# fxserver-esx_addonaccount
ESX AddonAccount
[INSTALLATION]
1) CD in your resources folder
2) Clone the repository
```
git clone https://github.com/FXServer-ESX/fxserver-cron cron
```
3) Add this in your server.cfg :
```
start cron
```
[USAGE]
```
-- Execute task every 5:10
function CronTask(d, h, m)
print('Task done')
end
TriggerEvent('cron:runAt', 5, 10, CronTask)
-- Execute task every monday at 18:30
function CronTask(d, h, m)
if d == 1 then
print('Task done')
end
end
TriggerEvent('cron:runAt', 18, 30, CronTask)
```