diff --git a/README.md b/README.md
index 7a2d7c3..6c22f1a 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# FiveM TimeSync
+# Vina TimeSync
### FEATURES
- Perfect Client & Server time synchronization
@@ -29,9 +29,9 @@
### INSTRUCTIONS:
- **1)** Place "fivemtimesync" directory inside your server Resources directory.
+ **1)** Place "vinatimesync" directory inside your server Resources directory.
- **2)** Add "ensure fivemtimesync" to your server config.
+ **2)** Add "ensure vinatimesync" to your server config.
**3)** Start your FiveM server.
@@ -58,11 +58,11 @@ You can get the server time in your own resource using this export function:
```csharp
// Get the server time
-long ticks = Exports["fivemtimesync"].GetCurrentDateTicks();
+long ticks = Exports["vinatimesync"].GetCurrentDateTicks();
DateTime currentDate = new DateTime(ticks);
// Set the server time
-Exports["fivemtimesync"].SetCurrentDateTicks(DateTime.Now.Ticks);
+Exports["vinatimesync"].SetCurrentDateTicks(DateTime.Now.Ticks);
```
---
@@ -71,22 +71,22 @@ Exports["fivemtimesync"].SetCurrentDateTicks(DateTime.Now.Ticks);
You can change the settings using convar in your FiveM server config file:
-- *set timesync_network_verbose 0*
+- *set vina_timesync_network_verbose 0*
**Set to 1 to print event in the console**
-- *set timesync_console_print_time 0*
+- *set vina_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 vina_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 vina_timesync_console_print_delay 60000*
**Set the millisecond delay between the print of time in console**
-- *set timesync_update_delay 60000*
+- *set vina_timesync_update_delay 60000*
**Set the delay before server force resync with all players**
-- *set timesync_timerate 1*
+- *set vina_timesync_timerate 1*
**Set the timerate, 1 = 1 real second & 10 = 10 time faster than real time**
diff --git a/FiveM_TimeSync.sln b/Vina-TimeSync.sln
similarity index 79%
rename from FiveM_TimeSync.sln
rename to Vina-TimeSync.sln
index 0207f82..7a71737 100644
--- a/FiveM_TimeSync.sln
+++ b/Vina-TimeSync.sln
@@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FiveM_TimeSync", "FiveM_TimeSync\FiveM_TimeSync.csproj", "{E43819C4-7F54-408A-B097-794CBD245BAD}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vina_TimeSyncClient", "Vina_TimeSyncClient\Vina_TimeSyncClient.csproj", "{E43819C4-7F54-408A-B097-794CBD245BAD}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FiveM_TimeSyncServer", "FiveM_TimeSyncServer\FiveM_TimeSyncServer.csproj", "{A4E0CA53-9DCD-453F-83CD-3F7AB0F25807}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vina_TimeSyncServer", "Vina_TimeSyncServer\Vina_TimeSyncServer.csproj", "{A4E0CA53-9DCD-453F-83CD-3F7AB0F25807}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
diff --git a/FiveM_TimeSync/Client.cs b/Vina_TimeSyncClient/Client.cs
similarity index 77%
rename from FiveM_TimeSync/Client.cs
rename to Vina_TimeSyncClient/Client.cs
index d20ff10..0dc8632 100644
--- a/FiveM_TimeSync/Client.cs
+++ b/Vina_TimeSyncClient/Client.cs
@@ -1,7 +1,7 @@
using VinaFrameworkClient.Core;
-using FiveM_TimeSync.Modules;
+using Vina_TimeSyncClient.Modules;
-namespace FiveM_TimeSync
+namespace Vina_TimeSyncClient
{
public class Client : BaseClient
{
diff --git a/FiveM_TimeSync/Modules/TimeSyncModule.cs b/Vina_TimeSyncClient/Modules/TimeSyncModule.cs
similarity index 98%
rename from FiveM_TimeSync/Modules/TimeSyncModule.cs
rename to Vina_TimeSyncClient/Modules/TimeSyncModule.cs
index ce24b93..dd7a29d 100644
--- a/FiveM_TimeSync/Modules/TimeSyncModule.cs
+++ b/Vina_TimeSyncClient/Modules/TimeSyncModule.cs
@@ -5,7 +5,7 @@
using VinaFrameworkClient.Core;
-namespace FiveM_TimeSync.Modules
+namespace Vina_TimeSyncClient.Modules
{
public class TimeSyncModule : Module
{
diff --git a/FiveM_TimeSync/Properties/AssemblyInfo.cs b/Vina_TimeSyncClient/Properties/AssemblyInfo.cs
similarity index 93%
rename from FiveM_TimeSync/Properties/AssemblyInfo.cs
rename to Vina_TimeSyncClient/Properties/AssemblyInfo.cs
index 47df24f..7375416 100644
--- a/FiveM_TimeSync/Properties/AssemblyInfo.cs
+++ b/Vina_TimeSyncClient/Properties/AssemblyInfo.cs
@@ -5,11 +5,11 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
-[assembly: AssemblyTitle("FiveM_TimeSync")]
+[assembly: AssemblyTitle("Vina_TimeSync")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("FiveM_TimeSync")]
+[assembly: AssemblyProduct("Vina_TimeSyncClient")]
[assembly: AssemblyCopyright("Copyright © VinaStar 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
diff --git a/FiveM_TimeSync/FiveM_TimeSync.csproj b/Vina_TimeSyncClient/Vina_TimeSyncClient.csproj
similarity index 93%
rename from FiveM_TimeSync/FiveM_TimeSync.csproj
rename to Vina_TimeSyncClient/Vina_TimeSyncClient.csproj
index ec65cf6..3f89441 100644
--- a/FiveM_TimeSync/FiveM_TimeSync.csproj
+++ b/Vina_TimeSyncClient/Vina_TimeSyncClient.csproj
@@ -7,8 +7,8 @@
{E43819C4-7F54-408A-B097-794CBD245BAD}
Library
Properties
- FiveM_TimeSync
- FiveM_TimeSync.net
+ Vina_TimeSyncClient
+ Vina_TimeSyncClient.net
v4.5.2
512
true
@@ -17,7 +17,7 @@
false
none
false
- ..\..\_resources\fivemtimesync\
+ ..\..\_resources\vinatimesync\
DEBUG;TRACE
prompt
4
diff --git a/FiveM_TimeSyncServer/Modules/TimeSyncModule.cs b/Vina_TimeSyncServer/Modules/TimeSyncModule.cs
similarity index 87%
rename from FiveM_TimeSyncServer/Modules/TimeSyncModule.cs
rename to Vina_TimeSyncServer/Modules/TimeSyncModule.cs
index 9b638d8..baba518 100644
--- a/FiveM_TimeSyncServer/Modules/TimeSyncModule.cs
+++ b/Vina_TimeSyncServer/Modules/TimeSyncModule.cs
@@ -7,7 +7,7 @@
using VinaFrameworkServer.Core;
-namespace FiveM_TimeSyncServer.Modules
+namespace Vina_TimeSyncServer.Modules
{
public class TimeSyncModule : Module
{
@@ -91,32 +91,33 @@ private double timeElapsed
protected override void OnModuleInitialized()
{
// Print more informations
- verbose = API.GetConvarInt("timesync_network_verbose", 0) == 1;
+ verbose = API.GetConvarInt("vina_timesync_network_verbose", 0) == 1;
// Peridically print current time
- printEnabled = API.GetConvarInt("timesync_console_print_time", 1) == 1;
+ printEnabled = API.GetConvarInt("vina_timesync_console_print_time", 1) == 1;
// Console Print Time Format
- printFormat = API.GetConvar("timesync_console_print_format", "MMMM d yyyy, HH:mm:ss tt");
+ printFormat = API.GetConvar("vina_timesync_console_print_format", "MMMM d yyyy, HH:mm:ss tt");
// Console Print Time Delay
- printDelay = API.GetConvarInt("timesync_console_print_delay", 1000 * 60 * 5);
+ printDelay = API.GetConvarInt("vina_timesync_console_print_delay", 1000 * 60 * 5);
// Sync players every 10 secs
- clientUpdateDelay = API.GetConvarInt("timesync_update_delay", 60000);
+ clientUpdateDelay = API.GetConvarInt("vina_timesync_update_delay", 60000);
// 10 x realtime
- timeRate = API.GetConvarInt("timesync_timerate", 1);
+ timeRate = API.GetConvarInt("vina_timesync_timerate", 1);
Debug.WriteLine($@"
=====================================
FIVEM TIME SYNC SETTINGS:
=====================================
- timesync_console_print = {printEnabled}
- timesync_console_print_format = {printFormat}
- timesync_console_print_delay (ms) = {printDelay}
- timesync_update_delay (ms) = {clientUpdateDelay}
- timesync_timerate (1sec * timerate) = {timeRate}
+ vina_timesync_network_verbose = {verbose}
+ vina_timesync_console_print = {printEnabled}
+ vina_timesync_console_print_format = {printFormat}
+ vina_timesync_console_print_delay (ms) = {printDelay}
+ vina_timesync_update_delay (ms) = {clientUpdateDelay}
+ vina_timesync_timerate (1sec * timerate) = {timeRate}
Current Date = {CurrentDate.ToString(printFormat)}
=====================================");
}
diff --git a/FiveM_TimeSyncServer/Properties/AssemblyInfo.cs b/Vina_TimeSyncServer/Properties/AssemblyInfo.cs
similarity index 92%
rename from FiveM_TimeSyncServer/Properties/AssemblyInfo.cs
rename to Vina_TimeSyncServer/Properties/AssemblyInfo.cs
index f7794af..6925b3f 100644
--- a/FiveM_TimeSyncServer/Properties/AssemblyInfo.cs
+++ b/Vina_TimeSyncServer/Properties/AssemblyInfo.cs
@@ -5,11 +5,11 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
-[assembly: AssemblyTitle("FiveM_TimeSyncServer")]
+[assembly: AssemblyTitle("Vina_TimeSync")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("FiveM_TimeSyncServer")]
+[assembly: AssemblyProduct("Vina_TimeSyncServer")]
[assembly: AssemblyCopyright("Copyright © VinaStar 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
diff --git a/FiveM_TimeSyncServer/Server.cs b/Vina_TimeSyncServer/Server.cs
similarity index 72%
rename from FiveM_TimeSyncServer/Server.cs
rename to Vina_TimeSyncServer/Server.cs
index 24707fe..614c9f3 100644
--- a/FiveM_TimeSyncServer/Server.cs
+++ b/Vina_TimeSyncServer/Server.cs
@@ -1,7 +1,7 @@
using VinaFrameworkServer.Core;
-using FiveM_TimeSyncServer.Modules;
+using Vina_TimeSyncServer.Modules;
-namespace FiveM_TimeSyncServer
+namespace Vina_TimeSyncServer
{
public class Server : BaseServer
{
diff --git a/FiveM_TimeSyncServer/FiveM_TimeSyncServer.csproj b/Vina_TimeSyncServer/Vina_TimeSyncServer.csproj
similarity index 93%
rename from FiveM_TimeSyncServer/FiveM_TimeSyncServer.csproj
rename to Vina_TimeSyncServer/Vina_TimeSyncServer.csproj
index 4fde351..141af1a 100644
--- a/FiveM_TimeSyncServer/FiveM_TimeSyncServer.csproj
+++ b/Vina_TimeSyncServer/Vina_TimeSyncServer.csproj
@@ -7,8 +7,8 @@
{A4E0CA53-9DCD-453F-83CD-3F7AB0F25807}
Library
Properties
- FiveM_TimeSyncServer
- FiveM_TimeSyncServer.net
+ Vina_TimeSyncServer
+ Vina_TimeSyncServer.net
v4.5.2
512
true
@@ -17,7 +17,7 @@
false
none
false
- ..\..\_resources\fivemtimesync\
+ ..\..\_resources\vinatimesync\
DEBUG;TRACE
prompt
4
diff --git a/__resource.lua b/__resource.lua
index 7f90054..1740c0c 100644
--- a/__resource.lua
+++ b/__resource.lua
@@ -1,6 +1,6 @@
game 'gta5'
-client_script 'FiveM_TimeSync.net.dll'
-server_script 'FiveM_TimeSyncServer.net.dll'
+client_script 'Vina_TimeSyncClient.net.dll'
+server_script 'Vina_TimeSyncServer.net.dll'
files {
"Newtonsoft.Json.dll",