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 7a5bbee commit 9213e95
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,35 @@

### EXPORTS:

You can get the server time in your own resource using this export function:
*Exports["fivemtimesync"].CurrentDateTicks()* **| Will return the total Ticks**
You can get the server time in your own resource using this export function:
*Exports["fivemtimesync"].CurrentDateTicks()*
**Will return the total Ticks**

```C#
new DateTime(Exports["fivemtimesync"].CurrentDateTicks());
DateTime currentDate = 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_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_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_timerate 1* **| Set the timerate, 1 = 1 real second & 10 = 10 time faster than real time**
- *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_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_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**


0 comments on commit 9213e95

Please sign in to comment.