Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
VinaStar authored Dec 3, 2020
1 parent c33a64d commit 7a5bbee
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**


0 comments on commit 7a5bbee

Please sign in to comment.