DroneCorp Weapon Repair V1
By DroneCorp.inc
Overview
DroneCorp Weapon Repair V1 is a fully optimized and immersive weapon repair system built specifically for FiveM servers using ox_inventory and ox_lib. This script introduces a realistic, configurable, and visually clean way for players to repair their weapons through custom repair benches and a modern NUI interface.
Designed with performance and flexibility in mind, this system gives server owners full control over how weapon repairs work, who can access them, and what resources are required.
Core Features
๐ง Custom Weapon Repair System
- Fully integrated with ox_inventory durability system
- Repair weapons directly from a custom NUI menu
- Automatically detects and displays repairable weapons in player inventory
- Maintains a secure server-side validation flow to prevent exploits
๐ฅ๏ธ Modern NUI Repair Menu
- Clean and responsive UI located in the
html/folder - Fully customizable design:
- Change menu color using
Config.menuColor - Customize title using
Config.menuTitle
- Change menu color using
- Displays all eligible weapons with durability status
- Smooth user experience with selection-based repair system
โ๏ธ Advanced Configuration
- Set a global required item for all repairs (example: repair kits)
- Configure weapon-specific repair requirements
- Control durability reset behavior
- Easily expandable to fit any server economy
๐ ๏ธ Fully Customizable Repair Benches
- Add unlimited repair locations
- Option to:
- Spawn a physical bench prop
- Use existing world objects as repair stations
- Each bench can have:
- Job restrictions
- Minimum job grades
- Free repair toggles
๐ฎ Job-Based Access Control
- Restrict benches to specific jobs:
- Example:
{ 'police', 'mechanic' }
- Example:
- Support for minimum grade requirements:
- Example:
{ police = 0, mechanic = 2 }
- Example:
- All checks are handled server-side for maximum security
๐งโ๐ผ In-Game Admin Management Panel
Admins can fully manage repair benches in real-time without restarting the server.
Command:
/repairbenchadmin
Features include:
- Place benches with a ghost preview system
- Select and convert existing objects into repair benches
- Edit:
- Allowed jobs
- Minimum grades
- Free repair settings
- Teleport to any bench
- Delete benches instantly
Permissions:
add_ace group.admin dronecorp.weaponrepair.admin allow
๐พ Persistent Data System
- All admin-created benches are saved in:
data/benches.json
- No need to edit config files after deployment
- Ensures all changes persist through server restarts
๐ Seamless ox_lib Integration
Utilizes ox_lib for:
- Notifications
- Progress bars
- Callbacks
- Prompts
This ensures:
- Smooth performance
- Consistent UI/UX across your server
How It Works
- Player approaches a repair bench
- Repair menu opens showing available weapons
- Player selects a weapon to repair
- Script checks:
- Required items
- Job permissions
- Valid weapon state
- Progress bar plays
- Weapon durability is restored
All validation is handled server-side, ensuring security and preventing abuse.
Why Choose DroneCorp Weapon Repair V1?
- โก Lightweight & optimized
- ๐ Fully secure server-side validation
- ๐จ Custom UI for a premium feel
- ๐ง Highly configurable for any server type
- ๐ง Easy to use, powerful admin tools
- ๐ฆ Plug-and-play with ox ecosystem
Perfect For
- Roleplay servers
- Economy-based servers
- Police / Mechanic job systems
- Hardcore or realistic gameplay setups
Requirements
- ox_inventory
- ox_lib
- FiveM server (latest recommended artifacts)
Support
If you need help or run into any issues, feel free to join our Discord or reach out.
DroneCorp.inc โ Building the next level of FiveM experiences.