[QB/ESX] WXN Weapon Repairs

WXN Weapon Repairs is a reimagined weapon repairing system built specifically for Ox Inventory. This was made for one of my personal projects, but I decided to openly release it. It stands out by offering dynamic material costs that scale based on weapon durability, support for multiple materials per weapon, secure server-side Discord webhooks, fully configurable notifications, and flexible interaction methods (target / textui), and full control over the prop models used, allowing you to change the table props to what you prefer if you intend to have different locations with different table models.

The custom UI provides players with clear, at-a-glance info; durability progress bar, weapon label & spawn name (if a player ever runs into an issue with a particular weapon, and you have a lot of weapons, this is super handy at getting straight to the point), required materials list, and a built-in explanation of the repair system — perfect for new players learning the mechanics.

Please note: there are many free weapon repair scripts available — you’re not required to purchase this one. This is simply a premium, feature-rich alternative with better visuals, optimization, and configurability.

:movie_camera: Preview Video

Highlighted Features

Dynamic & Balanced Repair System

  • Durability-Scaled Costs — Material requirements increase as weapon durability drops (fully configurable thresholds and multipliers).
  • Multi-Material Support — Each weapon can require different combinations of materials (e.g., steel + plastic + gun oil).
  • Freedom of Prop Placement — Each table can be placed in the Workstations Configuration. An item will soon be introduced so players can simply use the item where they want for easier accessibility.
  • Custom UI Experience — Clean interface showing weapon details, durability bar, material list, and system explanation tooltip.

Security & Logging

  • Server-Side Webhooks — Secure Discord logging for every repair (who, what weapon, materials used, etc.).
  • Exploit Protection — Ownership checks, distance validation, and anti-dupe measures.
  • Optimized Performance — 0.00ms idle / 0.00ms in-use resmon.

Configurability & Compatibility

  • Fully adjustable costs, scaling formulas, required items, notifications, and interaction points.
  • Works seamlessly with Ox Target / Ox Lib for smooth interactions.

:hammer_and_wrench: Dependencies

Inventory: Ox Inventory (required)
Utils: Ox Lib (required)
Interaction: Ox Target (recommended / default, but configurable)
Framework: Compatible with ESX, Qbox, QBCore

One of the listed frameworks is supported; oxmysql is required. The notification system is flexible via accessible code.

:gear: Configuration (Example)

The script is highly configurable. You can adjust material scaling to add as many materials as you want based on the durability level, repair times, base costs, and more. Small preview:

Config.Pricing = {
    -- Dynamic pricing based on durability brackets
    -- Logic: If durability > min_percent, apply this cost.
    Brackets = {
        { min_percent = 90, materials = { { name = 'iron', count = 6 } } },
        { min_percent = 65, materials = { { name = 'iron', count = 10 }, { name = 'steel', count = 1 } } },
        { min_percent = 40, materials = { { name = 'iron', count = 13 }, { name = 'steel', count = 3 }, { name = 'copper', count = 2 } } },
        { min_percent = 25, materials = { { name = 'iron', count = 16 }, { name = 'steel', count = 5 }, { name = 'copper', count = 4 } } },
        { min_percent = 10, materials = { { name = 'iron', count = 20 }, { name = 'steel', count = 7 }, { name = 'copper', count = 6 } } },
        { min_percent = 0,  materials = { { name = 'iron', count = 25 }, { name = 'steel', count = 10 }, { name = 'copper', count = 10 } } },
    },
    
    -- Specific overrides for weapon hashes
    Overrides = {
        -- ['WEAPON_RPG'] = { time = 10000, materials = { { name = 'money', count = 5000 } } }
    }
}

:shopping_cart: Purchase

https://wxnstudios.tebex.io/package/7236700


:camera_with_flash: Screenshots

Click to view Screenshots

Code is accessible No (Partially)
Lines (approximately) 870+
Requirements & dependencies ESX or QB/QBX
Support Yes
Subscription-based No