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.
This commit is contained in:
Bxio 2026-08-03 11:35:17 +00:00
parent e50eb7e74c
commit 9cb715fc34
3 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,7 @@ game 'gta5'
author 'SeuNome' author 'SeuNome'
description 'Sistema de safes com ox_inventory e ox_target' description 'Sistema de safes com ox_inventory e ox_target'
version '1.1.0' version '1.1.1'
-- Dependências -- Dependências
dependencies { dependencies {

View File

@ -341,10 +341,9 @@ if Config.Debug and Config.Update then
pending = pending - 1 pending = pending - 1
if pending == 0 then if pending == 0 then
if failed then if failed then
dbg('Upgrade incompleto — algum arquivo falhou. Resource NÃO foi reiniciado.') dbg('Upgrade incompleto — algum arquivo falhou.')
else else
dbg('Upgrade concluído. Reiniciando resource...') dbg('Upgrade concluído. Reinicie manualmente quando quiser: restart '..resourceName)
ExecuteCommand('restart '..resourceName)
end end
end end
end, 'GET') end, 'GET')

View File

@ -1,3 +1,3 @@
{ {
"version": "1.1.0" "version": "1.1.1"
} }