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

  1. Locate the Inventory Files Navigate to the src/inventories folder inside the resource directory.

  2. Create a Custom Inventory File Copy one of the existing inventory files (e.g., qb.lua or ox.lua) and rename it to match your inventory system's name.

  3. Modify the Functions Open the newly created file and update the functions to work with your inventory system's API and event structure.

  4. Set the Inventory in Configuration In the config.lua file, set the Inventory value to your custom inventory's name:

    Inventory = 'your_inventory_name'
  5. 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.