From b765d86285d37e5351dece29aa26b74284d1409e Mon Sep 17 00:00:00 2001 From: "Jordan.#2139" <65438497+Jordan2139@users.noreply.github.com> Date: Wed, 29 May 2024 15:46:10 -0400 Subject: [PATCH] v1.5.7 - Hotfix for incorrect native usage --- sonorancms/fxmanifest.lua | 2 +- sonorancms/server/server.lua | 4 ++-- sonorancms/version.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sonorancms/fxmanifest.lua b/sonorancms/fxmanifest.lua index ec5310a..1aa8051 100644 --- a/sonorancms/fxmanifest.lua +++ b/sonorancms/fxmanifest.lua @@ -4,7 +4,7 @@ games {'gta5'} author 'Sonoran Software Systems' real_name 'Sonoran CMS FiveM Integration' description 'Sonoran CMS to FiveM translation layer' -version '1.5.6' +version '1.5.7' lua54 'yes' server_scripts {'server/*.lua', 'config.lua', 'server/util/unzip.js', 'server/util/http.js', 'server/util/sonoran.js', 'server/util/utils.js', '@oxmysql/lib/MySQL.lua', 'server/util/imageHandler.js', 'server/modules/**/*_sv.js', 'server/modules/**/*_sv.lua'} diff --git a/sonorancms/server/server.lua b/sonorancms/server/server.lua index d279ad0..fcd9948 100644 --- a/sonorancms/server/server.lua +++ b/sonorancms/server/server.lua @@ -58,11 +58,11 @@ SetHttpHandler(function(req, res) imagePath = GetResourcePath('ps-inventory') .. '/html/' .. path .. '.png' elseif GetResourceState('ox_inventory') == 'started' then imagePath = GetResourcePath('ox_inventory') .. '/html/' .. path .. '.png' - elseif GetResourceName('qs-inventory') == 'started' then + elseif GetResourceState('qs-inventory') == 'started' then imagePath = GetResourcePath('qs-inventory') .. '/html/' .. path .. '.png' elseif GetResourceState('origen_inventory') == 'started' then imagePath = GetResourcePath('origen_inventory') .. '/html/' .. path .. '.png' - elseif GetResourceName('core_inventory') == 'started' then + elseif GetResourceState('core_inventory') == 'started' then imagePath = GetResourcePath('core_inventory') .. '/html/' .. path .. '.png' end if not path or not imagePath then diff --git a/sonorancms/version.json b/sonorancms/version.json index e4c5430..4bab3e6 100644 --- a/sonorancms/version.json +++ b/sonorancms/version.json @@ -1,4 +1,4 @@ { - "resource": "1.5.6", + "resource": "1.5.7", "testedFxServerVersion": "7290" }