From c4466ef9690c8b0aaf9d2459f4e607a437db5d36 Mon Sep 17 00:00:00 2001 From: Nordi98 Date: Fri, 11 Jul 2025 11:22:43 +0200 Subject: [PATCH] ed --- .../_modules/stash/qb-inventory/cl_stash.lua | 4 +++- .../_modules/stash/qb-inventory/sv_stash.lua | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/resources/[creator]/jobs_creator/_modules/stash/qb-inventory/cl_stash.lua b/resources/[creator]/jobs_creator/_modules/stash/qb-inventory/cl_stash.lua index 9029bf40a..ad0d4a01a 100644 --- a/resources/[creator]/jobs_creator/_modules/stash/qb-inventory/cl_stash.lua +++ b/resources/[creator]/jobs_creator/_modules/stash/qb-inventory/cl_stash.lua @@ -1,5 +1,5 @@ local moduleType = "stash" -- Module category -local moduleName = "qb-inventory" -- THIS module name +local moduleName = "tgiann-inventory" -- Updated module name to match your inventory resource -- Don't touch, required to appear in in-game settings Integrations.modules = Integrations.modules or {} @@ -11,5 +11,7 @@ table.insert(Integrations.modules[moduleType], moduleName) --[[ You can edit below here ]] Integrations[moduleType][moduleName].open = function(type, markerId) local id = type .. "_" .. markerId + -- Keep the same event name for compatibility with your server-side code TriggerServerEvent(Utils.eventsPrefix .. ":qb-inventory:server:stashNew", id) end + diff --git a/resources/[creator]/jobs_creator/_modules/stash/qb-inventory/sv_stash.lua b/resources/[creator]/jobs_creator/_modules/stash/qb-inventory/sv_stash.lua index e490250ac..9dbedc316 100644 --- a/resources/[creator]/jobs_creator/_modules/stash/qb-inventory/sv_stash.lua +++ b/resources/[creator]/jobs_creator/_modules/stash/qb-inventory/sv_stash.lua @@ -1,3 +1,4 @@ + local info = { maxweight = 1000000, slots = 50, @@ -7,6 +8,8 @@ local info = { -- New qb-inventory requirement for stash RegisterNetEvent(Utils.eventsPrefix .. ":qb-inventory:server:stashNew", function(stashId) local playerId = source - local scriptName = Utils.getScriptName("qb-inventory") -- DO NOT EDIT! If you want to edit the name, you can do it in-game - exports['tgiann-inventory']:OpenInventory(src, "stash", stashName) -end) + local scriptName = "tgiann-inventory" -- Use the direct name instead of Utils.getScriptName + + -- Use the correct parameter order and include "stash" as the second parameter + exports[scriptName]:OpenInventory(playerId, "stash", stashId, info) +end) \ No newline at end of file