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

Weapon Parts Configuration

Adding custom parts is not supported, do not add any new parts to Config.Parts

  • Purpose: Defines the parts that make up each weapon and their individual damage frequencies.

  • Structure:

    ["weapon_pistol"] = { --WeaponName
        ["barrel"] = { damageFrequency = 0.85 }, --Damage frequency of each part on fire
        ["front_sight"] = { damageFrequency = 0.6 },
        ["hammer"] = { damageFrequency = 1.1 },
        ["magazine"] = { damageFrequency = 0.4 },
        ["rear_sight"] = { damageFrequency = 0.5 },
        ["recoil_spring_guide"] = { damageFrequency = 1.2 },
        ["slide"] = { damageFrequency = 0.5 },
        ["trigger"] = { damageFrequency = 1.05 }
    },
  • Damage Frequency: Represents how much damage a part takes relative to the overall weapon damage. A higher value means the part degrades faster.

PreviousWeapon Damage MultipliersNextCrafting & Repair Experience

Last updated 4 months ago