GH Craft

GH Craft - Advanced Crafting Solution for FiveM

Introducing the GH Crafting System, a premium comprehensive crafting solution specifically designed for FiveM servers with the QBCore framework. This advanced script incorporates crafting mechanics into your roleplay server with a modern, intuitive interface and extensive customization options.

Main Features

  • Category-based crafting tables: Create specialized crafting stations for food, weapons, mechanical parts, medical supplies, and construction materials.
  • Tables with props: Use in-game models as crafting stations and integrate with ox_target or qb-target for interaction.
  • Color-coded recipe status: Items display in different colors depending on whether you have all required materials (green), some materials (yellow), or no materials (red) for crafting.
  • Attractive and responsive user interface: Clean, modern interface with search function and detailed recipe information.
  • Fully editable and responsive front-end: Completely customize the visual appearance to match your server’s aesthetic, with perfect adaptation to different screen resolutions.
  • Advanced queue system: Multiple players can use the same table with independent crafting queues.
  • Job integration: Lock recipes to specific jobs such as mechanic, ambulance, or police.
  • Persistent item storage: Crafted items remain on tables for later collection.
  • Extensive configuration: Customize all aspects through the config.lua file: crafting tables, categories, required materials, crafting times, and more.
  • Multilingual support: Translation to different languages that you can easily change from locale.lua according to your preferences.
  • Secured code: The script is encrypted for protection, while config.lua and locale.lua files remain fully editable to customize the system to your specific needs.

Fully Customizable

  • Add unlimited crafting recipes across multiple categories.
  • Configure table locations, models, and custom landmarks on the map.
  • Set job requirements for specific recipes.
  • Customize crafting times based on item complexity.
  • Configure non-consumable crafting components as blueprints to your liking.
  • Easily add new categories that adapt to your needs.

preview Config.lua

Config = {}

-- Maximum number of players in queue
Config.MaxQueueSize = 6
Config.MaxItemsPerPlayer = 20  -- You can adjust this value according to your needs
Config.language = 'en'              -- System language (es, en, fr, de, it, pt)

-- -- Add this to your Config file
-- Config.DefaultUseText = "Usar" -- Default text for interaction label (can be overridden per table)

Config.InventoryImagePath = "nui://qb-inventory/html/images/"  -- change this to your inventory path
-- Inventory NUI Full Paths
-- QB Inventory
-- nui://qb-inventory/html/images/

-- OX Inventory
-- nui://ox_inventory/html/images/

-- Core Inventory
-- nui://core_inventory/html/img/

-- ESX Legacy Inventory
-- nui://esx_inventoryhud/html/img/

-- ND Inventory
-- nui://nd_inventory/html/images/

-- PS Inventory
-- nui://ps-inventory/html/images/

-- LegacyFW Inventory
-- nui://legacyfw-inventory/html/images/

-- Custom Inventory
-- nui://your-inventory-name/html/images/
-- nui://your-inventory-name/html/img/



Config.JobColors = {
    ["ambulance"] = "#ff0000", -- Red for EMS
    ["police"] = "#0000ff",    -- Blue for police
    ["mechanic"] = "#ffa500",  -- Orange for mechanics
    ["default"] = "#ffffff"    -- Default color (white)
}


-- Crafting tables configuration
Config.CraftingTables = {
    -- Table 1 (Kitchen)
        {
            coords = vector4(1956.17, 4652.55, 40.77, 0.61),
            model = `prop_bbq_5`,
            objectRef = nil,
            name = "Kitchen",
            icon = "fas fa-utensils",
            blipSprite = 93,
            blipColor = 5,
            category = "food"
            -- useText = "Utilizar" -- Custom interaction text for this table
        }
        -- Table 2 (Workshop)
        -- {
        --     coords = vector4(-480.49, 6010.29, 30, 405),
        --     model = `gr_prop_gr_bench_04a`,
        --     objectRef = nil,
        --     name = "Workshop",
        --     icon = "fas fa-tools",
        --     blipSprite = 446,
        --     blipColor = 3,
        --     category = "mechanical"
        -- }
    }


    Config.CraftableItems = {
    -- Food
    -- Comida
    {
        item = "carne_cocinada",
        label = "Cooked Meat",
        time = 5,
        requiredJob = nil,
        category = "food",
        materials = {
            {item = "carne_cruda", amount = 1}
        }
    },
    {
        item = "queso",
        label = "Cheese",
        time = 5,
        requiredJob = nil,
        category = "food",
        materials = {
            {item = "leche", amount = 1}
        }
    },
    {
        item = "crema",
        label = "Cream",
        time = 5,
        requiredJob = nil,
        category = "food",
        materials = {
            {item = "leche", amount = 2}
        }
    },
    {
        item = "agua_de_uva",
        label = "Grape Water",
        time = 3,
        requiredJob = nil,
        category = "food",
        materials = {
            {item = "vaso_limpio", amount = 1},
            {item = "botella_con_agua_hervida", amount = 1},
            {item = "uva_verde", amount = 3}
        }
    }

    -- ... resto de los items
}

preview image




showcase video: here
discord: here

buy on tebex: here

Code is accessible only config and translation
Subscription-based No
Lines (approximately) 2000
Requirements qb-core / ox-target
Support Yes
2 Likes