mirror of
https://github.com/jimathy/rpemotes.git
synced 2026-07-23 06:03:33 -04:00
* Major Update - Convert to RPEmotes. - Add support for colors on particles. - Removed an unusual check when using the pay emote function. - Added config option to change cancel key. - Changed all keys to lowercase to prevent the "key no worky" bug. - Changed the open key to f4. - Improved and cleaner version check. - Updated events as the usage was deprecated. - Added a check to remove any unsupported emotes such as ones unsupported from game builds and improved the adult animation removal. * Fix * Changes * Update README.md
25 lines
1.1 KiB
Lua
25 lines
1.1 KiB
Lua
if Config.CheckForUpdates then
|
|
local function VersionLog(_type, log)
|
|
local color = _type == 'success' and '^2' or '^1'
|
|
print(('^8[rpemotes]%s %s^7'):format(color, log))
|
|
end
|
|
|
|
local function CheckMenuVersion()
|
|
PerformHttpRequest('https://raw.githubusercontent.com/TayMcKenzieNZ/rpemotes/master/version.txt', function(err, text, headers)
|
|
local currentVersion = GetResourceMetadata(GetCurrentResourceName(), 'version')
|
|
if not text then
|
|
VersionLog('error', 'Currently unable to run a version check.')
|
|
return
|
|
end
|
|
VersionLog('success', ('Current Version: %s'):format(currentVersion))
|
|
VersionLog('success', ('Latest Version: %s'):format(text))
|
|
if text == currentVersion then
|
|
VersionLog('success', 'You are running the latest version.')
|
|
else
|
|
VersionLog('error', ('You are currently running an outdated version, please update to version %s'):format(text))
|
|
end
|
|
end)
|
|
end
|
|
|
|
CheckMenuVersion()
|
|
end |