A complete crafting system designed for use with RSG Framework. This script allows players to craft items using required materials and integrates with ox_target for interactive crafting tables.
- Discord: https://discord.gg/kJ8ZrGM8TS
- Ensure all dependencies are installed and started before using QC-Craft.
- Players interact with crafting props set in the configuration to open the crafting menu.
- Crafting options and required materials are fully configurable in
config.lua
. - Item images should be added to your inventory images folder for proper display.
- Crafting timers are set in seconds in the configuration.
- To add more crafting recipes, edit the
Config.CraftingOptions
table inconfig.lua
. - Each recipe can have its own required items, crafting time, and output item.
- Make sure to add new items to
rsg-core/shared/items.lua
and provide corresponding images.
Config = {
CraftingOptions = {
["Example Item"] = {
crafttimer = 60, -- Craft time in seconds
required = {
[1] = { item = "wood", amount = 10 },
[2] = { item = "iron", amount = 1 },
},
receive = "weapon_example"
},
}
}
- rsg-core
- rsg-menu
- bln_notify
- ox_target
- Ensure all dependencies are installed and started.
- Add
QC-Craft
to yourresources
folder. - Add required items to your
rsg-core/shared/items.lua
. - Add item images to your
rsg-inventory/html/images
folder. - Adjust
config.lua
as needed for your server.
Add the following to your server.cfg
:
ensure QC-Craft