From bbf3f3824188e0900c1eea54a711e1cb8c86875f Mon Sep 17 00:00:00 2001 From: Nordi98 Date: Mon, 14 Jul 2025 17:27:24 +0200 Subject: [PATCH] Update sv_stash.lua --- .../_modules/stash/qb-inventory/sv_stash.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 ad9d95fd0..13f4b23e0 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 @@ -6,11 +6,11 @@ local info = { -- New qb-inventory requirement for stash RegisterNetEvent(Utils.eventsPrefix .. ":qb-inventory:server:stashNew", function(stashId) +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[scriptName]:OpenInventory(playerId, stashId, info) - TriggerServerEvent("inventory:server:OpenInventory", "stash", stashId, { - maxweight = 4000000, - slots = 50, + -- Option 1: Using exports (recommended) + exports["tgiann-inventory"]:OpenInventory(playerId, "stash", stashId, { + maxweight = 4000000, + slots = 50, }) -end) +end) \ No newline at end of file