Closed adhershmnair closed 5 days ago
I'm not sure that I think the functionality is needed. A locker is basically just a stash and can act like one when it comes to the way it's handled.
I feel that it opens unnecessary doors, especially with exploiting, to create an event that allows you to set item data.
@Qwerty1Verified
Hmm.. So we can use SetInventory
export to add the same to Inventories
. Right?
@Qwerty1Verified
Thanks. It worked using SetInventory
!!!
Closing this PR as there was already an export for the same.
Thanks!!!
Description
If someone try to create a custom inventory other than stash, glovebox, shop it is currently impossible to add the inventory to existing server inventory cache. Created a new event to add the new inventory to the
Inventories
cache in server/main.lua file.Usage in server scripts:
This method allows us to add a new inventory, such as QB Lockers, which is a custom inventory, and open it immediately after creating it. Note: Adding the inventory to the database will be handled within the custom inventory's resource.