Custom Inventory
Learn how to add and configure custom inventories.
If you are using a custom inventory system and want to integrate it with the Crafting resource, follow these steps to set it up.
Steps to Add a Custom Inventory
-
Locate the Inventory Files Navigate to the
src/inventories
folder inside the resource directory. -
Create a Custom Inventory File Copy one of the existing inventory files (e.g.,
qb.lua
orox.lua
) and rename it to match your inventory system's name. -
Modify the Functions Open the newly created file and update the functions to work with your inventory system's API and event structure.
-
Set the Inventory in Configuration In the
config.lua
file, set theInventory
value to your custom inventory's name: -
Restart the Resource Save all changes and restart the Crafting resource on your server.
Notes
- Make sure your custom inventory system provides the required APIs and events to handle item interactions seamlessly.
- Use the existing inventory files as references for implementing your functions.
- Test your custom inventory integration thoroughly before deploying it on a live server.
For additional help, contact us on our Discord server.