Download the qt-library from GitHub and ensure it is started before the qt-crafting resource.
-
Download qt-library:
Download the library from the GitHub repository. -
Start the library:
Ensure that theqt-libraryresource is started before theqt-crafting-v2resource in yourserver.cfg. -
Configure
qt-crafting:
Go to theshared.luafile in theqt-crafting-v2resource directory.
Select the appropriate framework, target, and inventory path according to your server setup. -
Ensure that folder name is
qt-crafting-v2
You can use the following client-side and server-side exports:
-- Open a specific crafting table from an external script (Client-side)
exports['qt-crafting']:OpenMenu(table_id)
-- Load the library functions for the client (Client-side)
exports['qt-library']:Load()
-- Load the library functions for the server (Server-side)
exports['qt-library']:Load()