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 093cc6535..abc433610 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,8 +1,9 @@ --- New qb-inventory requirement for stash RegisterNetEvent(Utils.eventsPrefix .. ":qb-inventory:server:stashNew", function(stashId) - TriggerEvent("inventory:server:OpenInventory", "stash", stashId, { - maxweight = 4000000, - slots = 50, + 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 + TriggerServerEvent("inventory:server:OpenInventory", "stash", stashId, { + maxweight = 4000000, + slots = 50, }) end) \ No newline at end of file