From 7a5bbee6900269f51c265615eac80157c44a5455 Mon Sep 17 00:00:00 2001 From: VinaStar <75405346+VinaStar@users.noreply.github.com> Date: Wed, 2 Dec 2020 23:02:26 -0500 Subject: [PATCH] Update README.md --- README.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 1fe6893..2302d14 100644 --- a/README.md +++ b/README.md @@ -14,24 +14,27 @@ ### EXPORTS: You can get the server time in your own resource using this export function: - *Exports["fivemtimesync"].CurrentDateTicks()* | Will return the total Ticks - **Usage:** *new DateTime( Exports["fivemtimesync"].CurrentDateTicks() );* + *Exports["fivemtimesync"].CurrentDateTicks()* **| Will return the total Ticks** + + ```C# + new DateTime(Exports["fivemtimesync"].CurrentDateTicks()); + ``` ### CONVARS: You can change the settings using convar in your FiveM server config file: - *set timesync_network_verbose 0* | Set to 1 to print event in the console + *set timesync_network_verbose 0* **| Set to 1 to print event in the console** - *set timesync_console_print_time 0* | Set to 1 to print the time periodically in the console + *set timesync_console_print_time 0* **| Set to 1 to print the time periodically in the console** - *set timesync_console_print_format "MMMM d yyyy, HH:mm:ss tt"* | Set the format to print the date/time + *set timesync_console_print_format "MMMM d yyyy, HH:mm:ss tt"* **| Set the format to print the date/time** - *set timesync_console_print_delay 60000* | Set the millisecond delay between the print of time in console + *set timesync_console_print_delay 60000* **| Set the millisecond delay between the print of time in console** - *set timesync_update_delay 60000* | Set the delay before server force resync with all players + *set timesync_update_delay 60000* **| Set the delay before server force resync with all players** - *set timesync_timerate 1* | Set the timerate, 1 = 1 real second & 10 = 10 time faster than real time + *set timesync_timerate 1* **| Set the timerate, 1 = 1 real second & 10 = 10 time faster than real time**