🪑Pre-Set Crafting Tables Guide

Pre-set crafting tables allow you to place static, server-side benches that players can access at fixed locations. These are ideal for job-based crafting stations, gang hideouts, or public crafting zones.


🔧 What Are Pre-Set Tables?

They’re configured under:

Config.PreSetTables

Each entry creates a unique crafting station tied to:

  • A specific world coordinate

  • A bench prop model

  • Optional job/gang restrictions

  • Optional player whitelisting

  • A custom set of craftable items

These tables spawn automatically on resource start and are not removable by players.


🪛 How to Add a Pre-Set Table

Here’s a full example of a crafting table entry:

Config.PreSetTables = {
    ["Table1"] = {
        Label = "Crafting Table", -- UI display name
        BenchProp = "gr_prop_gr_bench_02a", -- The bench model used
        BenchCoords = vector4(586.8718, -3274.8003, 6.0696, 90.0), -- World location and heading
        Groups = { "mechanic", "lostmc" }, -- (Optional) Jobs or gangs that can use this table
        CitizenID = { "MNT68646" }, -- (Optional) Whitelist specific player(s) (CitizenID for QBCore/QBOX, Identifier for ESX)

        ["Items"] = {
            ["WEAPON_PISTOL"] = {
                Label = "Pistol",
                DefaultQuantity = 1,
                XPEnable = true,
                Level = 2,
                xpGain = 5,
                UseBlueprint = true,
                ShowOnList = false,
                RemoveBlueprint = false,
                BlueprintItem = "blueprint_pistol",
                ConsumeDurability = 0,

                ["Material"] = {
                    ["rubber"] = { Label = "Rubber", amount = 2 },
                },

                ["Prop"] = {
                    model = "w_pi_pistol",
                    offset = vector3(1.3, 0.0, -0.3),
                    rotation = vector3(0, 0, 0)
                }
            }
        }
    }
}

🧾 Step-by-Step Setup

1️⃣ Choose a Unique Table Name

  • This is the key (e.g., "Table1").

  • Must be unique—avoid duplicates.

2️⃣ Set the Bench Label & Prop

  • Label: What players will see on the UI.

  • BenchProp: The model of the physical bench (use any valid prop model).

3️⃣ Define Bench Coordinates

  • Use /copycoords or a similar command to grab the spot and heading:

    BenchCoords = vector4(x, y, z, heading)

4️⃣ Restrict Access (Optional)

  • Groups: Allow only specific jobs or gangs to use the bench.

  • CitizenID: Whitelist individual players by their CitizenID or identifier.

5️⃣ Assign Craftable Items

  • Under ["Items"], define the crafting recipes.

  • Each recipe can include XP level requirements, blueprint items, materials, and optional props.


📌 Notes

  • These benches cannot be placed or removed by players—they’re always present once defined.

  • Great for:

    • Job-only workbenches (e.g., mechanic shops)

    • Gang crafting spots

    • Government or black-market craft zones


🧠 Tips

  • Combine with XP + Blueprint systems to create realistic crafting progression.

  • Use unique models per location (e.g., lab table for drugs, toolbench for weapons).

  • If a player meets both Groups and CitizenID, they’ll be allowed access.

Last updated