Repair damaged weapons in the field using immersive animations and full qb-weapons integration.
π Overview
DH Weapon Repair is a lightweight, immersive weapon repair system designed for QBCore servers using qb-weapons. It allows players to repair the weapon they are currently holding by using a weapon repair kit item, restoring weapon durability back to a configured maximum value. The system is designed to be reliable, compatible, and performance-safe β correctly detecting equipped weapons even in edge cases where weapon data is missing, and applying durability changes directly through qb-weapons server logic.
This is NOT a gimmick or partial repair script. DH Weapon Repair was built with:
β Accurate equipped-weapon detection
β Full qb-weapons durability integration
β Immersive repair animations
β Clean item consumption logic
β Clear user feedback
β Ultra-lightweight design
Perfect for RP servers, survival servers, PvP balance, black markets, or any economy where weapon condition matters.
β¨ Key Features
β Repair Equipped Weapon: Repairs the weapon the player is currently holding
β qb-weapons Integration: Uses `qb-weapons:server:SetWeaponQuality` to safely restore durability.
β Edge-Case Safe Detection: Detects the equipped weapon even if CurrentWeaponData is nil.
β Configurable Repair Time: Set how long the repair animation takes.
β Immersive Animation: Plays a configurable mechanic-style repair animation.
β Item-Based Repair: Consumes one weapon repair kit per use.
β Compatibility-Friendly: Works with all weapons registered in `QBCore.Shared.Weapons`, including custom weapons.
β Ultra Lightweight: No loops, no background processing, no performance impact.
π For License Owners
You are allowed to:
β Edit, customize, and expand the script
β Modify client/server logic for your serverβs needs
You may NOT:
β Resell, redistribute, or repackage this script
β Share the script files with others
β Upload the script to GitHub or other repositories
β Sell modified versions
β Claim authorship of this script