Cron RunAt Problem

Hello im making a script but i want it to be execute just one time a day i try tu use Cron with ther trigger cron:runAt but the callback of the function doesnt work.

TriggerEvent(‘cron:runAt’, 13, 54, startCoffre)

I try to get the time with game natives like : GetLocalTime() , GetUtcTime() and with my acutal hours but nothing work.

Thanks for your help :slight_smile:

Give os.date() a try.

https://www.lua.org/pil/22.1.html

Hi thanks for your fast replie i just made a mistake and put the trigger in my client BRUHHHHH. Now in the server it works really better :wink:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.