|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
script_name("TruckHUD") |
|
|
|
|
script_author("Serhiy_Rubin") |
|
|
|
|
script_version("28.01.2023.1") |
|
|
|
|
script_version("28.01.23.2") |
|
|
|
|
|
|
|
|
|
local inicfg = require "inicfg" |
|
|
|
|
local dlstatus = require("moonloader").download_status |
|
|
|
@ -4298,7 +4298,7 @@ script_update = { |
|
|
|
|
local result, text = pcall(openURL, script_update.version_url, fpath) |
|
|
|
|
if result then |
|
|
|
|
ini.settings.server_version = text |
|
|
|
|
if text ~= "" and not string.find(text, thisScript().version) then |
|
|
|
|
if text ~= "" and text ~= thisScript().version then |
|
|
|
|
addChatMessage( string.format("Вышла новая версия '%s'. Текущая: '%s'", text, thisScript().version) ) |
|
|
|
|
if ini.settings.auto_update then |
|
|
|
|
addChatMessage( string.format("Автообновление скрипта включено. Процесс запущен!") ) |
|
|
|
@ -4317,7 +4317,7 @@ script_update = { |
|
|
|
|
local fpath = os.tmpname() |
|
|
|
|
local result, text = pcall(openURL, script_update.version_url, fpath) |
|
|
|
|
if result then |
|
|
|
|
if text ~= "" and not string.find(text, thisScript().version) then |
|
|
|
|
if text ~= "" and text ~= thisScript().version then |
|
|
|
|
addChatMessage( string.format("Вышла новая версия '%s'. Текущая: '%s'", text, thisScript().version) ) |
|
|
|
|
local fpath = os.tmpname() |
|
|
|
|
local result, text = pcall(openURL, script_update.script_url, fpath) |
|
|
|
|