Custom Framework

Learn how to add and configure custom frameworks.


If you are using a custom framework or wish to add a framework that's not officially supported, follow these steps to integrate it with the Crafting resource.

Steps to Add a Custom Framework

  1. Locate the Custom Framework Files Navigate to the frameworks folder in the resource directory. Inside, you'll find a folder named custom.

  2. Modify the Functions Open both server.lua and client.lua within the custom folder. Update the framework functions in these files to work with your framework's API and event structure.

  3. Set the Framework in Configuration In the config.lua file, set the Framework value to custom:

    Framework = 'custom'
  4. Restart the Resource Save all changes and restart the Crafting resource on your server.


Notes

  • Ensure that your custom framework supports the necessary hooks and functionality for the Crafting resource to work properly.
  • Refer to existing framework files (e.g., qbcore or esx) in the frameworks folder for examples on implementing the required functions.
  • Always test your custom implementation thoroughly before deploying it on a live server.

For additional assistance, contact us on our Discord server.