Update sv_version_check.lua

This commit is contained in:
Michachatz
2025-10-04 23:35:47 +02:00
committed by GitHub
parent 1feb7ba599
commit 4c312fce4a

View File

@@ -48,7 +48,7 @@ function GetCurrentVersion()
end
-- Grabs the latest version number from the web GitHub
PerformHttpRequest( "https://wolfknight98.github.io/wk_wars2x_web/version.txt", function( err, text, headers )
PerformHttpRequest( "https://michatec.github.io/wk_wars2x_web/version.txt", function( err, text, headers )
-- Wait to reduce spam
Citizen.Wait( 2000 )
@@ -66,7 +66,7 @@ PerformHttpRequest( "https://wolfknight98.github.io/wk_wars2x_web/version.txt",
-- If the versions are different, print it out
if ( text ~= curVer ) then
print( " || ^1Your Wraith ARS 2X version is outdated, visit the FiveM forum post to get the latest version.\n^0 \\\\\n" )
print( " || ^1Your Wraith ARS 2X version is outdated, visit the GitHub post to get the latest version.\n^0 \\\\\n" )
else
print( " || ^2Wraith ARS 2X is up to date!\n^0 ||\n \\\\\n" )
end
@@ -79,4 +79,4 @@ PerformHttpRequest( "https://wolfknight98.github.io/wk_wars2x_web/version.txt",
if ( GetCurrentResourceName() ~= "wk_wars2x" ) then
print( "^1ERROR: Resource name is not wk_wars2x, expect there to be issues with the resource. To ensure there are no issues, please leave the resource name as wk_wars2x^0\n\n" )
end
end )
end )