-
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
started work on server speficic configuration file settings for serve…
…r owners to configure more options/behaviour of the menu and the functions inside the menu
- Loading branch information
Showing
3 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using CitizenFX.Core; | ||
using static CitizenFX.Core.Native.API; | ||
|
||
namespace vMenuClient | ||
{ | ||
public static class Configuration | ||
{ | ||
private static bool initialized = false; | ||
public static void InitializeConfig() | ||
{ | ||
if (!initialized) | ||
{ | ||
string file = LoadResourceFile("vMenu", "config/config.ini"); | ||
if (file != null && !string.IsNullOrEmpty(file)) | ||
{ | ||
ParseConfig(file); | ||
} | ||
else | ||
{ | ||
Debug.Write("\n\n[vMenu] Error loading config file! Please notify the server owner if you see this.\n\n"); | ||
} | ||
} | ||
initialized = true; | ||
} | ||
|
||
private static void ParseConfig(string config) | ||
{ | ||
|
||
} | ||
|
||
|
||
|
||
|
||
#region vehicle related settings | ||
public static bool keepSpawnedVehiclesPersistent = false; | ||
#endregion | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters