Guide

Configuration Guide


Configuration Files Overview

The script uses three main configuration files:

  1. config/main.lua - General settings, language strings, UI config

  2. config/workbench.lua - Workbench definitions (static and placeable)

  3. config/recipes.lua - Crafting recipes


Workbench Configuration

Configuration Structure

config/workbench.lua contains three main sections:

1. Config.PropSettings - Prop Models and Offsets

Defines visual models and camera positions for placeable workbenches:

Config.PropSettings = {
    small = {
        model = 'prop_tool_bench02_ld',
        spawnOffset = { coords = vector3(0.0, 0.0, 0.0) },
        camOffset = { coords = vector3(0.0, -0.1, 0.15), heading = 90.0 }
    },
    large = {
        model = 'gr_prop_gr_bench_04b',
        spawnOffset = { coords = vector3(0.0, 0.0, 0.0) },
        camOffset = { coords = vector3(0.0, -0.6, 0.15) }
    }
}

Available prop models:

  • Small: prop_tool_bench02_ld

  • Large: gr_prop_gr_bench_04b (general), gr_prop_gr_bench_02b (weapon)

circle-info

You can create new tables with other props.

2. Config.Workbench - Static World Workbenches

Pre-defined workbenches that exist in the world (not placeable by players):

Key fields:

  • blip: Map blip configuration (set enabled = false to hide)

  • groups: Job/gang restrictions (nil = public)

  • objectSettings: Reference to Config.PropSettings entry

  • objectCoords: World position (vector4 with heading)

  • interaction: How players interact with the bench

  • allowBlueprints: If true, any blueprint can be used

  • recipes: List of recipe keys that can be crafted without blueprints

  • stash: Two separate inventories (storage for materials, blueprint for blueprints)

3. Config.WorkbenchPlaceable - Placeable Workbench Items

Items that players can place inside properties:

Important: The index (lvs_crafting_table_small) must match the item name in your inventory items file.


Recipe Configuration

Recipe Structure

config/recipes.lua defines all craftable items:

Recipe Fields:

  • count: Number of items produced

  • duration: Crafting time in seconds

  • ingredients: Table of { item_name = quantity }

  • successRate: Optional success percentage (1-100, default 100)

  • requireBlueprint: If true, blueprint required even if recipe listed

  • prop.model: Model to show in preview (optional)

  • prop.offsetZ: Vertical offset for preview model

  • blueprint.name: Blueprint identifier (shared across multiple recipes)

  • blueprint.degrade: Durability loss per craft (0-1, 0 = disabled)

  • tool.name: Required tool item name

  • tool.degrade: Tool durability loss per craft

  • isWeapon: Set to true for weapon items


Last updated