Update sv_version_check.lua

This commit is contained in:
Dan
2019-12-10 21:25:45 +00:00
parent 1a2cd814e8
commit 7539278005

View File

@@ -6,13 +6,14 @@
-----------------------------------------------------------------------]]-- -----------------------------------------------------------------------]]--
local label = local label =
[[// [[
|| __ __ _ _ _ _____ _____ ___ __ __ //
|| \ \ / / (_) | | | /\ | __ \ / ____| |__ \\ \ / / || __ __ _ _ _ _____ _____ ___ __ __
|| \ \ /\ / / __ __ _ _| |_| |__ / \ | |__) | (___ ) |\ V / || \ \ / / (_) | | | /\ | __ \ / ____| |__ \\ \ / /
|| \ \/ \/ / '__/ _` | | __| '_ \ / /\ \ | _ / \___ \ / / > < || \ \ /\ / / __ __ _ _| |_| |__ / \ | |__) | (___ ) |\ V /
|| \ /\ /| | | (_| | | |_| | | | / ____ \| | \ \ ____) | / /_ / . \ || \ \/ \/ / '__/ _` | | __| '_ \ / /\ \ | _ / \___ \ / / > <
|| \/ \/ |_| \__,_|_|\__|_| |_| /_/ \_\_| \_\_____/ |____/_/ \_\]] || \ /\ /| | | (_| | | |_| | | | / ____ \| | \ \ ____) | / /_ / . \
|| \/ \/ |_| \__,_|_|\__|_| |_| /_/ \_\_| \_\_____/ |____/_/ \_\]]
function GetCurrentVersion() function GetCurrentVersion()
return GetResourceMetadata( GetCurrentResourceName(), "version" ) return GetResourceMetadata( GetCurrentResourceName(), "version" )
@@ -25,12 +26,12 @@ PerformHttpRequest( "https://wolfknight98.github.io/wk_wars2x/version.txt", func
local curVer = GetCurrentVersion() local curVer = GetCurrentVersion()
print( "||\n|| Current version: " .. curVer ) print( " ||\n || Current version: " .. curVer )
print( "|| Latest version: " .. text .."\n||" ) print( " || Latest version: " .. text .."\n ||" )
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\\\\" ) print( " || ^1Your Wraith ARS 2X version is outdated, visit the FiveM forum post to get the latest version.\n^0 \\\\\n" )
else else
print( "|| ^2Wraith ARS 2X is up to date!\n^0||\n\\\\" ) print( " || ^2Wraith ARS 2X is up to date!\n^0 ||\n \\\\\n" )
end end
end ) end )