Craft System
Overview
Hate Crafting is an advanced and versatile crafting system for FiveM servers with multiple access methods, crafting levels, and a visually appealing interface. The script supports both ESX and QBCore frameworks, providing a seamless experience for players to craft items in your server.
Features
Multiple access methods: markers, objects, target systems
Crafting levels with progression
3D item preview with rotation
Persistent crafting - continue crafting even when the UI is closed
Material requirements and quantity selection
Compatible with ESX and QBCore frameworks
Customizable UI and crafting locations
Support for multiple target systems (qtarget, qb-target, ox_target)
Skill-based progression with HateSkills integration
Configuration Options
Basic Configuration
Item Images and Player Level
The ImagePath
setting determines where the script will look for item images. Adjust this to match your inventory resource.
Player level can be determined by the HateSkills resource (if enabled) or use the default level specified.
Crafting Duration
The DefaultCraftDuration
is the time (in seconds) it takes to craft an item unless overridden by a specific item configuration.
Crafting Items Configuration
The CraftableItems
table is organized by level groups, with each level containing a list of items. Each item has:
name
: The item spawn name (must match your inventory system)description
: A brief description of the itemcraftDuration
(optional): Custom craft duration that overrides the defaultmaterials
: List of required materials to craft the item, each with a name and amount
Access Methods Configuration
The AccessMethod
determines how players can access the crafting menu:
target
: Using a target system (qtarget, qb-target, ox_target)marker
: Using map markers at specific locationsobject
: Interacting with specific objects in the worldall
: Enabling all access methods
Target System Configuration
When using the target access method, these settings determine:
Which target system to use (qtarget, qb-target, or ox_target)
Which props can be targeted for crafting interaction
Marker System Configuration
The marker configuration allows:
Creating multiple crafting locations with coordinates
Adding map blips for each location
Job restrictions for specific locations
Customizing marker appearance and draw distance
Object Detection Configuration
When using the object access method, these settings determine:
Which object models can be used for crafting
The maximum interaction distance for these objects
Display and Interface Configuration
These settings control:
Text display format and position
Interaction key (default E)
Optional command access to the crafting menu
Integration with Frameworks
The script automatically detects whether your server is using ESX or QBCore framework and adapts accordingly. It uses the appropriate functions for:
Checking inventory contents
Adding and removing items
Job restrictions
Notifications
Adding Custom Items
To add new craftable items:
Add the item to your inventory system
Add the item to the appropriate level group in
Config.CraftableItems
Ensure the item image is available at the configured
Config.ImagePath
Example:
Support
For support with this script, please contact the developer through the provided channels or seek assistance from the community forums.
Credits
Developed by Hate for FiveM servers.