Files
Elite-Gaming-FiveM/resources/[EGRP-Discord-Integration]/Discord-WepRestriction/version-check.lua
T
Jacob 3bd8365ca5 feat: overall QOL improvements
+ Updated to latest server artifacts
+ Updated vMenu to the latest v3.6
+ Replaced Discord Weapon restrictions with a better fork of the repository.
+ Restructured the server config, and updated the dlc build to the latest San Andreas Mercenaries dlc.
+ Attempted to fix missing radios in the wheel.
2023-12-02 02:40:09 +00:00

19 lines
924 B
Lua

function GetCurrentVersion()
return GetResourceMetadata(GetCurrentResourceName(), "version")
end
PerformHttpRequest("https://raw.githubusercontent.com/IC-Technologies/ImprovedDiscordWeaponPerms/master/version.txt", function(error, updatedVersion, headers)
Citizen.Wait(2500)
local currentVersion = GetCurrentVersion()
if (updatedVersion ~= nil) and (currentVersion ~= nil) then
print("Current Version: " .. currentVersion)
print("Latest Version: " .. updatedVersion)
if (updatedVersion ~= currentVersion) then
print('ImprovedDiscordWeaponPerms is outdated, go to https://github.com/IC-Technologies/RP_Commands/releases to get the latest version.')
else
print('ImprovedDiscordWeaponPerms is up to date!')
end
else
print('There was an error in the checks for the latest version, if the issue persists open an issue @ https://github.com/IC-Technologies/ImprovedDiscordWeaponPerms/issues.')
end
end)