Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyB505 committed Sep 22, 2023
1 parent c91c32d commit 0e15ea6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vMenuServer/MainServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,11 @@ private int DynamicWeatherMinutes
public MainServer()
{
var gamebuild = 2372;
var gamebuildcurr = GetConvarInt("sv_enforcegamebuild", 0);
// build check
if (GetGameBuildNumber() > gamebuild)
if (gamebuildcurr < gamebuild)
{
var InvalidServerId = new Exception($"\r\n\r\n^1 Wrong Game Build: {GetGameBuildNumber()}!. You need atleast Game Build {gamebuild} to use PF-vMenu. Tutorial on how to change this: https://forum.cfx.re/t/tutorial-forcing-gamebuilds-on-fivem/4784977\r\n\r\n\r\n^7");
var InvalidServerId = new Exception($"\r\n\r\n^1 Wrong Game Build: {gamebuildcurr}!. You need atleast Game Build {gamebuild} to use PF-vMenu. Tutorial on how to change this: https://forum.cfx.re/t/tutorial-forcing-gamebuilds-on-fivem/4784977\r\n\r\n\r\n^7");
try
{
throw InvalidServerId;
Expand All @@ -210,7 +211,7 @@ public MainServer()
}
else
{
Debug.WriteLine($"Game Build: {GetGameBuildNumber()}");
Debug.WriteLine($"Game Build: {gamebuildcurr}");
// id check
if (GetSettingsString(Setting.vmenu_individual_server_id) == "" || GetSettingsString(Setting.vmenu_individual_server_id) == null || GetSettingsString(Setting.vmenu_individual_server_id) == "null")
{
Expand Down

0 comments on commit 0e15ea6

Please sign in to comment.