mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
Update sv_version_check.lua
This commit is contained in:
@@ -48,7 +48,7 @@ function GetCurrentVersion()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Grabs the latest version number from the web GitHub
|
-- 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
|
-- Wait to reduce spam
|
||||||
Citizen.Wait( 2000 )
|
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 the versions are different, print it out
|
||||||
if ( text ~= curVer ) then
|
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
|
else
|
||||||
print( " || ^2Wraith ARS 2X is up to date!\n^0 ||\n \\\\\n" )
|
print( " || ^2Wraith ARS 2X is up to date!\n^0 ||\n \\\\\n" )
|
||||||
end
|
end
|
||||||
@@ -79,4 +79,4 @@ PerformHttpRequest( "https://wolfknight98.github.io/wk_wars2x_web/version.txt",
|
|||||||
if ( GetCurrentResourceName() ~= "wk_wars2x" ) then
|
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" )
|
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 )
|
end )
|
||||||
|
|||||||
Reference in New Issue
Block a user