PixelCraft Official Docs
  • Welcome
  • Information
    • Discord Roles
    • How to update your asset
    • FiveM Asset Escrow System
  • Assets and Guides
    • PC-Crafting-V2
      • Installation
      • Configuration
        • Inventory System
        • Core Framework
        • Language
        • EXP Enabled
        • Whitelisting Players
        • Whitelisted Admins
        • Weapon Damage Multipliers
        • Weapon Parts Configuration
        • Crafting & Repair Experience
        • Crafting Locations
        • Database Setup
        • Custom Weapons
        • Crafting Recipes
        • Attachments
      • Troubleshooting
      • Commands
      • Support
    • PC-Security
      • Installation
      • Configuration
        • Job Routes
        • Level Thresholds
        • Level-Specific Configurations
        • Damage Threshold
        • Police Alert
        • Security Shop Items
        • Criminal Rewards
        • Blips
      • Support
Powered by GitBook
On this page
  1. Assets and Guides
  2. PC-Crafting-V2
  3. Configuration

Attachments

  • Structure (attachments.lua)

supportedAttachments = {
    tint = {
        -- Global weapon tints
    },
    ['weapon_name'] = {
        clip = {
            -- Clip attachments
        },
        scope = {
            -- Scope attachments
        },
        // Additional attachment types...
    }
}
  • Required Fields for Each Attachment:

    {
        component = "COMPONENT_ID",     -- GTA component ID
        bone = "BONE_NAME",            -- Attachment point
        label = "Display Name",        -- UI name
        image = "image_file.png",      -- UI image
        name = "at_type_variant",      -- ESX identifier (required for ESX)
        isDefault = true/false         -- Default component flag
    }

  • Framework-Specific Requirements

    • ESX:

      • Requires 'name' field (e.g., 'at_clip_extended')

PreviousCrafting RecipesNextTroubleshooting

Last updated 4 months ago