From 9cb715fc34d040d98930c8bea3ce8c3ca9edb95f Mon Sep 17 00:00:00 2001 From: Bxio Date: Mon, 3 Aug 2026 11:35:17 +0000 Subject: [PATCH] Remove auto-restart from upgrade command, bump to 1.1.1 ExecuteCommand('restart ...') was restarting the whole FXServer process in this environment instead of just the resource, so /oixbupgrade now only downloads files and tells the admin to restart manually. --- fxmanifest.lua | 2 +- server.lua | 5 ++--- version.json | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fxmanifest.lua b/fxmanifest.lua index e1375a9..84a3c0b 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -3,7 +3,7 @@ game 'gta5' author 'SeuNome' description 'Sistema de safes com ox_inventory e ox_target' -version '1.1.0' +version '1.1.1' -- Dependências dependencies { diff --git a/server.lua b/server.lua index 2f85e1e..c00546a 100644 --- a/server.lua +++ b/server.lua @@ -341,10 +341,9 @@ if Config.Debug and Config.Update then pending = pending - 1 if pending == 0 then if failed then - dbg('Upgrade incompleto — algum arquivo falhou. Resource NÃO foi reiniciado.') + dbg('Upgrade incompleto — algum arquivo falhou.') else - dbg('Upgrade concluído. Reiniciando resource...') - ExecuteCommand('restart '..resourceName) + dbg('Upgrade concluído. Reinicie manualmente quando quiser: restart '..resourceName) end end end, 'GET') diff --git a/version.json b/version.json index ab13354..7ed47c0 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "1.1.0" + "version": "1.1.1" }