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
-
Locate the Custom Framework Files Navigate to the
frameworks
folder in the resource directory. Inside, you'll find a folder namedcustom
. -
Modify the Functions Open both
server.lua
andclient.lua
within thecustom
folder. Update the framework functions in these files to work with your framework's API and event structure. -
Set the Framework in Configuration In the
config.lua
file, set theFramework
value tocustom
: -
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
oresx
) in theframeworks
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.