Commit Graph

11 Commits

Author SHA1 Message Date
Gellipapa 9d90c9d674 🎨 Run formatter 2024-01-24 23:07:30 +01:00
Thekuca 48c9662377 fix(cron): fix unused args 2023-08-17 00:07:39 +02:00
ItsKuf ea14a80fa0 🚀 Enhanced ESX Core Cron Task Handling
Description:
This commit brings substantial enhancements to the time handling functionality in the 'esx_core/[core]/cron/server/main.lua' script for the FiveM server:

- Utilized Unix Timestamps: Replaced the existing `GetTime()` function with `GetUnixTimestamp()`, ensuring precise time representation by using the Unix timestamp format (seconds since January 1, 1970). This change mitigates potential issues related to Daylight Saving Time (DST) transitions.

- Refined Task Execution Logic: The `OnTime` function has been refactored to operate based on Unix timestamps, ensuring accurate execution of scheduled tasks without any inconsistencies due to local time conversions.

By introducing these improvements, the cron-like system now operates with enhanced accuracy, bolstering the stability and predictability of scheduled events on the FiveM server. Extensive testing has been conducted to guarantee compatibility with various server environments.
2023-07-26 09:52:33 +01:00
TheFantomas 9049c98d76 formatting(all): Format with prettier and lua formatter 2023-07-09 17:00:36 +02:00
TheFantomas 88c8036a24 formatting(core): Format all 2023-06-29 20:20:28 +02:00
Tomić eaa27d0ac4 feat(Client): GetAccount method
- Minor code refactoring
- Return nil on the server if the account isn't fount (self.getAccount)
2023-05-08 10:00:17 +02:00
TheFantomas ddaf99f9a4 fix(cron/server/main.lua): Fixed mistake.... 2023-03-15 15:43:55 +01:00
Thekuca a7a3b77f05 refactor(cron/server/main): Micro change 2023-03-14 11:24:19 +01:00
Benzo db983b931c move everything into core folder 2023-01-18 15:21:39 +01:00
Benzo 9f36559ac0 Revert "build: new repos"
This reverts commit cfb8e742e4.
2023-01-18 15:08:44 +01:00
Benzo cfb8e742e4 build: new repos 2023-01-18 15:06:15 +01:00