⚙️ Configuration Details
Custom Crafting Recipes
The crafting system allows defining items and their required materials in config.lua
. Example:
PA.Crafting = {
Workbenches = {
{x = 123.45, y = -456.78, z = 789.01, type = "general"},
{x = 223.45, y = -556.78, z = 889.01, type = "weapons"},
},
Recipes = {
weapons = {
{
item = "weapon_pistol",
label = "Pistol",
materials = {
{item = "steel", quantity = 10},
{item = "plastic", quantity = 5},
},
time = 30, -- Seconds to craft
failChance = 5, -- 5% chance to fail
jobRestriction = "gunsmith",
},
},
general = {
{
item = "lockpick",
label = "Lockpick",
materials = {
{item = "metal_scrap", quantity = 3},
},
time = 10,
failChance = 0,
jobRestriction = nil,
},
}
}
}
Key Configuration Options
Workbenches: Define locations and types of crafting stations.
Recipes: Configure crafting blueprints with material requirements.
Time: Set crafting durations per item.
FailChance: Introduce a risk of failure.
JobRestriction: Restrict crafting to specific job roles.
🚀 Conclusion
The PA Crafting System enhances roleplay by adding depth to item creation. With customizable recipes, workbench mechanics, and job-based restrictions, it provides an engaging crafting experience tailored to your server’s economy and gameplay style.
Last updated
Was this helpful?