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