Config
⚙️ Configuration
The alpha-CraftingV3 script offers extensive customization options through the Shared/Config.lua file. This page provides detailed explanations for each configuration option to help you tailor the crafting system to your server's needs.
🔧 General Settings
Debug Mode
Debug = falseType:
booleanDefault:
falseDescription: Enable debug mode to see detailed console messages and access debug commands
Production Note: Always set to
falsefor production servers to hide debug information
Language Configuration
Locale = "En"Type:
stringOptions:
"En"|"Tr"Default:
"En"Description: Language setting for all script messages, notifications and UI texts
Supported Languages:
"En"- English"Tr"- Turkish
Expandable: Add more languages by creating new files in the
Locales/folder
Interaction System
Type:
stringOptions:
"Target"|"Default"Default:
"Target"Description: How players interact with crafting stations
"Target"- Use target systems (ox_target/qb-target) for interactions (recommended)"Default"- Use key press interactions with on-screen text
📱 Discord Logging
Basic Configuration
Enable
Set to true to enable Discord logging
WebhookURL
Your Discord webhook URL from server settings
AvatarURL
Avatar image URL for Discord bot messages
DateFormat
Date/time format for timestamps (Lua format guide)
🛠️ Items Configuration
Items are the core of the crafting system. Each item represents something that can be crafted with specific requirements and properties.
Item Structure
Item Properties
Name
string
The actual item name in your inventory system
Label
string
Human-readable name shown in the UI
Description
string
Description shown in the UI
Image
string
Path to item image (relative to Assets/Images/)
ImageURL
string
Optional: Direct URL for Discord logs
Quantity
number
How many items are produced per craft
RequiredLevel
number
Minimum crafting level required (0 = no requirement)
Duration
number
Crafting time in seconds
SuccessRate
number
Success rate percentage (1-100)
AddXPWhenCraftFails
boolean
Whether to give XP even when crafting fails
AddXP
number
XP amount to give when crafting completes
Job Requirements
Material Requirements
Example Items
Basic Medical Item
Advanced Weapon Item
📋 Crafting Menus
Menus organize items into categories and determine which items appear together in the UI.
Menu Structure
Default Menu Categories
Medical
Medical
Medical supplies and healing items
Utility
Utility
Tools and utility items
Miscellaneous
Miscellaneous
Various general items
Mechanic
Mechanic
Vehicle-related items
Digital
Digital
Electronic and tech items
Weapon
Weapons
Firearms and weapons
Ammo
Ammo
Ammunition and explosives
Example Menu
🏭 Crafting Stations
Crafting stations are physical locations where players can craft items. Each station can have multiple menus and job restrictions.
Station Structure
Station Properties
Label
string
Display name for the station
Name
string
Unique identifier (no spaces)
Coords
vector3
World coordinates where the station is located
Menus
table
Which menus are available at this station
Jobs
table
Job restrictions for accessing the station
Blip
table
Map blip configuration
Target
table
Interaction zone configuration
Job Restrictions
Map Blip Configuration
Target Zone Configuration
Example Station Configuration
🎮 Crafting System Features
Experience System
Leveling: Players gain XP by crafting items
Level Requirements: Items can require minimum crafting levels
Fail Rewards: Option to give XP even when crafting fails
Progression: Higher level items give more XP
Success Rate System
RNG Elements: Items can have success rates below 100%
Skill-based: Lower success rates add challenge
Material Loss: Failed crafts may consume materials
Risk vs Reward: Rare items typically have lower success rates
Job Integration
Access Control: Restrict stations by job and grade
Specialized Crafting: Job-specific items and stations
Role-playing: Realistic job-based crafting system
Hierarchy: Grade requirements for advanced crafting
📝 Adding New Content
Adding a New Item
Create Item Entry:
Add to Menu:
Ensure Item Exists: Make sure the item exists in your server's inventory system
Adding a New Crafting Station
Get Coordinates: Use in-game tools to find desired location
Configure Station: Add new entry to
CraftingStationsSet Permissions: Configure job restrictions if needed
Add Blip: Configure map marker if desired
Test Zone: Verify target zone positioning and size
🎯 Quick Setup Guide
Configure Items: Add your server's items to the
ItemssectionOrganize Menus: Group items into logical categories
Position Stations: Place crafting stations around your map
Set Permissions: Configure job restrictions for stations
Add Images: Place item images in
Assets/Images/folderSetup Discord: Enable logging and configure webhook
Test Thoroughly: Verify all items craft correctly
Balance Economy: Adjust material costs and success rates
⚠️ Important Notes
Unique Keys: All item keys, menu keys, and station names must be unique
Job Matching: Job names must match your server's job system exactly
Image Paths: Images are relative to the
Assets/Images/folderItem Database: Ensure all items exist in your server's inventory system or database
Coordinates: Use precise coordinates for proper station positioning
Performance: Consider crafting times and success rates for gameplay balance
Testing: Always test in debug mode before production deployment
🔧 Advanced Configuration Tips
Balancing Crafting Economy
Material Costs: Higher tier items should require more/rarer materials
Time Investment: Longer craft times for valuable items
Success Rates: Lower rates for high-value or rare items
XP Rewards: Balance XP gains with item value and difficulty
Performance Optimization
Station Count: Limit stations to prevent excessive blip clutter
Image Sizes: Optimize images for faster loading
Menu Organization: Group similar items together for better UX
Craft Times: Balance realism with gameplay flow
Role-Playing Integration
Job Restrictions: Use job requirements for realistic crafting roles
Progression System: Gate advanced items behind level requirements
Material Sources: Ensure materials are obtainable through gameplay
Economic Impact: Consider effects on server economy
Last updated