Configuration
Learn how to configure the Crafting resource.
Changing the Framework
-
Open
config.lua
located in the resource folder. -
Locate the following line:
-
Update the value to your desired framework. Supported frameworks include:
auto
- Automatically detect the framework.esx-legacy
esx
qbcore
qbox
If you want to add a custom framework, refer to the custom framework guide.
-
Save the file and restart the resource.
Changing the Translation
-
Open
config.lua
in the resource folder. -
Locate the following line:
-
Replace
'en-US'
with the language code of your choice. A list of supported languages can be found in thetranslations
folder.- To add a new language, copy the
en-US.lua
file and rename it with your desired language code. Modify the file contents as needed.
- To add a new language, copy the
-
Save the file and restart the resource.
Configuring Bench Options
-
Open
config.lua
in the resource folder. -
Find the
BenchOptions
section: -
Modify the options as needed. Available options include:
allowMultipleUsers
: Allow multiple users to use the bench simultaneously.isInvincible
: Make the player invincible while crafting (only works ifallowMultipleUsers
isfalse
).removeBlueprintOnCraft
: Remove the blueprint from the player after crafting.enableSpotlight
: Enable spotlight effects for the bench.enablePortableBenches
: Enable portable benches, allowing players to place them with specific items.colors
: Customize theprimary
andneutral
colors for the bench.hideUnavailableRecipes
: Hide recipes that the player can't craft.filterMissingBlueprintRecipes
: Filter out recipes that the player doesn't have the blueprint for.blueprintDurability
: Set blueprint item durability options. Only works ifenableBlueprintItems
andremoveBlueprintOnCraft
are enabled.adminBenchAccess
: Allow admins to use all benches.
-
Save the file and restart the resource.
Setting Up Portable Benches
-
Open
config.lua
in the resource folder. -
Find the
BenchOptions
section: -
Change
enablePortableBenches
totrue
. -
Save the file and restart the resource.
-
Navigate to your inventory resource (or item configuration), and add the following item:
(Example for QBCore. Configuration may vary depending on your inventory resource. The item name must be
crafting_bench
and must be unstackable.) -
Save the file and restart the resource.
Players can now place benches using the crafting_bench
item. The item must include metadata like this:
Replace UUID
with the desired bench type UUID, which can be found in the editor.
To give the item to a player:
- Open the editor and click the "Give item" button on the desired bench type.
- Use one of the resource's commands.
- Use one of the resource's exports.
Setting Up Blueprints as Items
- Open
config.lua
in the resource folder. - Locate the
BlueprintItems
section: - Change
enableBlueprintItems
totrue
. - Save the file and restart the resource.
- Navigate to your inventory resource (or item configuration), and add the following item:
(Example for QBCore. Configuration may vary depending on your inventory resource. The item name must be
blueprint
.)
Blueprint items must include metadata:
Replace UUID
with the UUID of the desired blueprint, which can be found in the editor.
To give the item to a player:
Blueprints are recognized based solely on the metadata and the item name. For example, if you have an item named pistol_blueprint
, the resource will identify it as a blueprint for the pistol
.