Add to cart
Sale!
Script ESX QBCore Standalone

Aty Crafting

Original price was: $50.00.Current price is: $27.00.

-46%
Add to Cart
Aty Crafting FiveM resource preview
Aty Crafting
$50.00 Original price was: $50.00.$27.00Current price is: $27.00.

Product facts

Framework
ESX, QBCore, Standalone
Resource type
Script
Included files
1 downloadable file

Purchase details

Download format
ZIP

Enhance your FiveM server with a Crafting and Attachment System that brings innovation, customization, and smooth performance to your players. Here’s what it offers:

  • Dynamic Crafting Tables: Set up crafting stations tailored to specific jobs or make them accessible to everyone, giving you full control over crafting permissions.
  • Real-Time Crafting Progress: Players can monitor their crafting status live, offering a seamless and engaging user experience.
  • Boosting Integration: Monetize your server by allowing players to purchase crafting time reductions through Tebex, boosting both engagement and revenue potential.
  • Effortless Configuration: Easily expand your server’s capabilities by adding new crafting tables, recipes, and materials to suit evolving player needs.
  • Weapon Attachment System: Introduce a new layer of gameplay with weapon enhancements, enabling players to customize and upgrade their guns.
  • Optimized Performance: Engineered for efficiency, the system ensures smooth performance, even with high player activity during crafting sessions.

This comprehensive system not only enriches gameplay but also opens opportunities for server monetization and long-term player engagement.

Config file

Config = {
    Framework = "qb", -- "qb" or "esx" or "oldesx"
    MySQL = "oxmysql", -- "oxmysql" or "ghmattimysql" or false
    Tebex = "https://ak4y.tebex.io/",
    BoostPrice = 100,
    BoostPercentage = 0.5, -- 0.5 = 50%

    CoreExport = function()
        if Config.Framework == "qb" then
            return exports["qb-core"]:GetCoreObject()
        elseif Config.Framework == "esx" then
            return exports["es_extended"]:getSharedObject()
        end
    end,

    CraftingTables = {
        ["police"] = {
            Coords = vector3(454.3285, -979.7649, 30.6896),
            Job = "police", -- all or job name
            Grade = 2, -- minimum job grade
            Distance = 1.0, -- distance to interact
            Marker = {
                Type = 2,
                Size = vector3(0.5, 0.5, 0.5),
                Color = {
                    r = 255,
                    g = 255,
                    b = 255,
                    a = 200
                }
            },
            Blip = {
                Sprite = 110,
                Color = 3,
                Label = "Police Crafting Table"
            },
            Categories = {
                {
                    categoryCode = "all",
                    categoryLabel = "All",
                },
                {
                    categoryCode = "weapons",
                    categoryLabel = "Weapons",
                },
                {
                    categoryCode = "consumables",
                    categoryLabel = "Consumables",
                },
                {
                    categoryCode = "attachments",
                    categoryLabel = "Attachments",
                },
            },
            Items = {
                {
                    itemCategory = "consumables",
                    itemCode = "bandage",
                    itemLabel = "Bandage",
                    itemImage = "bandage.png",
                    itemLevel = 1,
                    itemDuration = 10,
                    itemPrice = 50,
                    itemExp = 10,
                    itemDesc = "A simple bandage",
                    ingredients = {
                        { itemCode = "bandage", quantity = 5, label = "Cloth", image = "cloth.png" },
                    }
                },
                {
                    itemCategory = "attachments",
                    itemCode = "clip_attachment",
                    itemLabel = "Clip",
                    itemImage = "clip.png",
                    itemLevel = 1,
                    itemDuration = 20,
                    itemPrice = 100,
                    itemExp = 15,
                    itemDesc = "A simple clip attachment",
                    ingredients = {
                        { itemCode = "iron", quantity = 2, label = "Iron", image = "iron.png" },
                    }
                },
                {
                    itemCategory = "weapons",
                    itemCode = "weapon_pistol",
                    itemLabel = "Pistol MKII",
                    itemImage = "pistol.png",
                    itemLevel = 1,
                    itemDuration = 30,
                    itemPrice = 100,
                    itemExp = 15,
                    itemDesc = "A simple pistol",
                    ingredients = {
                        { itemCode = "iron", quantity = 5, label = "Iron", image = "iron.png" },
                        { itemCode = "wood", quantity = 2, label = "Wood", image = "wood.png" }
                    }
                },
                {
                    itemCategory = "weapons",
                    itemCode = "rifle",
                    itemLabel = "Rifle MKII",
                    itemImage = "rifle.png",
                    itemLevel = 2,
                    itemDuration = 60,
                    itemPrice = 200,
                    itemExp = 30,
                    itemDesc = "A simple rifle",
                    ingredients = {
                        { itemCode = "iron", quantity = 10, label = "Iron", image = "iron.png" },
                        { itemCode = "wood", quantity = 5, label = "Wood", image = "wood.png" }
                    }
                },
                {
                    itemCategory = "weapons",
                    itemCode = "shotgun",
                    itemLabel = "Shotgun MKII",
                    itemImage = "shotgun.png",
                    itemLevel = 3,
                    itemDuration = 60,
                    itemPrice = 300,
                    itemExp = 45,
                    itemDesc = "A simple shotgun",
                    ingredients = {
                        { itemCode = "iron", quantity = 15, label = "Iron", image = "iron.png" },
                        { itemCode = "wood", quantity = 10, label = "Wood", image = "wood.png" }
                    }
                },
                {
                    itemCategory = "weapons",
                    itemCode = "sniper",
                    itemLabel = "Sniper MKII",
                    itemImage = "sniper.png",
                    itemLevel = 4,
                    itemDuration = 60,
                    itemPrice = 400,
                    itemExp = 60,
                    itemDesc = "A simple sniper",
                    ingredients = {
                        { itemCode = "iron", quantity = 20, label = "Iron", image = "iron.png" },
                        { itemCode = "wood", quantity = 15, label = "Wood", image = "wood.png" }
                    }
                },
            }
        }
    },

    Levels = {
        [1] = {exp = 0},
        [2] = {exp = 50},
        [3] = {exp = 100},
        [4] = {exp = 150},
        [5] = {exp = 250},
        [6] = {exp = 350},
        [7] = {exp = 500},
        [8] = {exp = 700},
        [9] = {exp = 1000},
        [10] = {exp = 1300},
        [11] = {exp = 1600},
        [12] = {exp = 2000},
        [13] = {exp = 2500},
        [14] = {exp = 3000},
        [15] = {exp = 4000},
    },
    
    AttachmentItems ={
        ["clip"] = "clip_attachment",
        ["silencer"] = "suppressor_attachment",
        ["flashlight"] = "flashlight_attachment",
        ["scope"] = "smallscope_attachment",
        ["grip"] = "grip_attachment",
    },

    Attachments = {
        {
            itemCode = "weapon_pistol",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_PISTOL_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_SUPP_02"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_FLSH"),
                    label = "Flashlight",
                },
            }
        },
        {
            itemCode = "weapon_combatpistol",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_COMBATPISTOL_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_SUPP"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_FLSH"),
                    label = "Flashlight",
                },
            }
        },
        {
            itemCode = "weapon_appistol",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_APPISTOL_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_SUPP"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_FLSH"),
                    label = "Flashlight",
                },
            }
        },
        {
            itemCode = "weapon_microsmg",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_MICROSMG_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_SUPP_02"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_FLSH"),
                    label = "Flashlight",
                },
                ["scope"] = {
                    hash = GetHashKey("COMPONENT_AT_SCOPE_MACRO_02"),
                    label = "Scope",
                },
            }
        },
        {
            itemCode = "weapon_smg",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_SMG_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_SUPP_02"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_FLSH"),
                    label = "Flashlight",
                },
                ["scope"] = {
                    hash = GetHashKey("COMPONENT_AT_SCOPE_MACRO_02"),
                    label = "Scope",
                },
            }
        },
        {
            itemCode = "weapon_assaultsmg",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_ASSAULTSMG_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_SUPP_02"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_FLSH"),
                    label = "Flashlight",
                },
                ["scope"] = {
                    hash = GetHashKey("COMPONENT_AT_SCOPE_MACRO"),
                    label = "Scope",
                },
            }
        },
        {
            itemCode = "weapon_assaultrifle",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_ASSAULTRIFLE_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_SUPP_02"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_FLSH"),
                    label = "Flashlight",
                },
                ["scope"] = {
                    hash = GetHashKey("COMPONENT_AT_SCOPE_MACRO"),
                    label = "Scope",
                },
                ["grip"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_AFGRIP"),
                    label = "Grip",
                },
            }
        },
        {
            itemCode = "weapon_carbinerifle",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_CARBINERIFLE_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_SUPP_02"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_FLSH"),
                    label = "Flashlight",
                },
                ["scope"] = {
                    hash = GetHashKey("COMPONENT_AT_SCOPE_MEDIUM"),
                    label = "Scope",
                },
                ["grip"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_AFGRIP"),
                    label = "Grip",
                },
            }
        },
        {
            itemCode = "weapon_advancedrifle",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_ADVANCEDRIFLE_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_SUPP"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_FLSH"),
                    label = "Flashlight",
                },
                ["scope"] = {
                    hash = GetHashKey("COMPONENT_AT_SCOPE_SMALL"),
                    label = "Scope",
                },
                ["grip"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_AFGRIP"),
                    label = "Grip",
                },
            }
        },
        {
            itemCode = "weapon_specialcarbine",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_SPECIALCARBINE_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_SUPP_02"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_FLSH"),
                    label = "Flashlight",
                },
                ["scope"] = {
                    hash = GetHashKey("COMPONENT_AT_SCOPE_MEDIUM"),
                    label = "Scope",
                },
                ["grip"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_AFGRIP"),
                    label = "Grip",
                },
            }
        },
        {
            itemCode = "weapon_bullpuprifle",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_BULLPUPRIFLE_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_SUPP"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_FLSH"),
                    label = "Flashlight",
                },
                ["scope"] = {
                    hash = GetHashKey("COMPONENT_AT_SCOPE_SMALL"),
                    label = "Scope",
                },
                ["grip"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_AFGRIP"),
                    label = "Grip",
                },
            }
        },
        {
            itemCode = "weapon_pumpshotgun",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_PUMPSHOTGUN_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_SR_SUPP"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_FLSH"),
                    label = "Flashlight",
                },
            }
        },
        {
            itemCode = "weapon_sawnoffshotgun",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_SAWNOFFSHOTGUN_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_SUPP"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_FLSH"),
                    label = "Flashlight",
                },
            }
        },
        {
            itemCode = "weapon_assaultshotgun",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_ASSAULTSHOTGUN_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_SUPP_02"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_FLSH"),
                    label = "Flashlight",
                },
            }
        },
        {
            itemCode = "weapon_heavysniper",
            attachments = {
                ["scope"] = {
                    hash = GetHashKey("COMPONENT_AT_SCOPE_LARGE"),
                    label = "Scope",
                },
            }
        },
        {
            itemCode = "weapon_snspistol",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_SNSPISTOL_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_SUPP"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_FLSH"),
                    label = "Flashlight",
                },
            }
        },
        {
            itemCode = "weapon_gusenberg",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_GUSENBERG_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_SUPP"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_FLSH"),
                    label = "Flashlight",
                },
            }
        },
        {
            itemCode = "weapon_specialcarbine_mk2",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_SPECIALCARBINE_MK2_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_SUPP_02"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_FLSH"),
                    label = "Flashlight",
                },
                ["scope"] = {
                    hash = GetHashKey("COMPONENT_AT_SCOPE_MEDIUM_MK2"),
                    label = "Scope",
                },
                ["grip"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_AFGRIP_02"),
                    label = "Grip",
                },
            }
        },
        {
            itemCode = "weapon_bullpuprifle_mk2",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_BULLPUPRIFLE_MK2_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_SUPP_02"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_FLSH"),
                    label = "Flashlight",
                },
                ["scope"] = {
                    hash = GetHashKey("COMPONENT_AT_SCOPE_SMALL_MK2"),
                    label = "Scope",
                },
                ["grip"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_AFGRIP_02"),
                    label = "Grip",
                },
            }
        },
        {
            itemCode = "weapon_pumpshotgun_mk2",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_PUMPSHOTGUN_MK2_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_SR_SUPP_03"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_FLSH"),
                    label = "Flashlight",
                },
            }
        },
        {
            itemCode = "weapon_marksmanrifle_mk2",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_MARKSMANRIFLE_MK2_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_SUPP_02"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_FLSH"),
                    label = "Flashlight",
                },
                ["scope"] = {
                    hash = GetHashKey("COMPONENT_AT_SCOPE_MEDIUM_MK2"),
                    label = "Scope",
                },
                ["grip"] = {
                    hash = GetHashKey("COMPONENT_AT_AR_AFGRIP_02"),
                    label = "Grip",
                },
            }
        },
        {
            itemCode = "weapon_revolver_mk2",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_REVOLVER_MK2_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_SUPP_02"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_FLSH_03"),
                    label = "Flashlight",
                },
            }
        },
        {
            itemCode = "weapon_doubleaction",
            attachments = {
                ["clip"] = {
                    hash = GetHashKey("COMPONENT_DOUBLEACTION_CLIP_02"),
                    label = "Extended Clip",
                },
                ["silencer"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_SUPP_02"),
                    label = "Silencer",
                },
                ["flashlight"] = {
                    hash = GetHashKey("COMPONENT_AT_PI_FLSH_03"),
                    label = "Flashlight",
                },
            }
        }
    }
}

 

Setup guide

The bundled README covers only rebuilding the web interface; server installation is controlled by the package config and SQL.

Requirements and preparation

  • Select QBCore, ESX or old ESX.
  • Select the SQL adapter declared in config.lua and install the included schema.

Installation

  1. Import the included SQL and extract aty_crafting.
  2. Set framework and SQL adapter, then configure categories, recipes, ingredients, levels and crafting tables.
  3. Start after the chosen framework/database resources; rebuilding the included web UI is not required for normal installation.

Configuration checkpoints

  • Test ingredient removal, crafted-item delivery, level/XP gates and attachment recipes.
  • Verify every item name against the active inventory and test economy values on staging.

Safety: Back up the affected resource and database tables, use credentials owned by your server, and complete a staging test before replacing a live resource. The full configuration remains in the download package.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.