CodeM mWeaponshop - Professional Weapon Store System for FiveM
CodeM mWeaponshop transforms your FiveM server's weapon purchasing experience with a modern, fully-customizable interface that brings realistic firearm retail to your roleplay community. Built for ESX, QBCore, and standalone frameworks, this weapon shop script delivers a professional storefront that handles everything from licensing requirements to dynamic inventory management, creating an authentic gun store experience that enhances your server's economy and law enforcement roleplay.
What sets CodeM mWeaponshop apart is its attention to detail in recreating real-world weapon retail. Players interact with a sleek, intuitive UI that displays weapon stats, pricing, and availability in real-time. The system supports multiple shop locations, customizable opening hours, and flexible payment methods, making it perfect for servers that want to create distinct weapon stores across their map - from legal gun shops requiring permits to underground dealers operating on different terms.
What's Included
The CodeM mWeaponshop package provides a complete weapon retail solution ready to deploy on your FiveM server. You're getting a professionally coded script with a modern user interface, comprehensive configuration options, and full framework integration that works out of the box. The system includes pre-configured weapon categories, customizable pricing structures, and built-in security features to prevent exploits and maintain server economy balance.
Installation is straightforward - the script integrates seamlessly with your existing inventory system (whether you're using ESX, QBCore, or ox_inventory) and includes detailed configuration files that let you customize every aspect without touching the core code. The package also includes example configurations for different shop types, from legitimate firearms dealers to black market operators, giving you flexibility in how weapons are distributed on your server.
Key Features
- Multi-Framework Support - Works with ESX, QBCore, and standalone setups with automatic framework detection, eliminating manual configuration and ensuring compatibility with your existing server infrastructure
- Modern UI Design - Clean, responsive interface with smooth animations and weapon preview displays that enhance player experience without impacting performance
- License System Integration - Optionally require weapon licenses for purchases, integrate with your server's licensing system to enforce legal weapon sales and create roleplay opportunities for law enforcement
- Dynamic Pricing - Configure min/max price ranges that allow for economic fluctuations, dealer markups, and special promotions while maintaining balance
- Multiple Shop Locations - Create unlimited weapon shop locations across your map, each with unique inventories, pricing, and restrictions to create diverse weapon markets
- Opening Hours System - Set custom operating hours for each shop location with automatic notifications when players attempt to access closed stores
- Job Restrictions - Blacklist specific jobs from purchasing weapons or create job-exclusive shops (like police armories or gang weapon caches)
- Payment Flexibility - Support cash and bank card payments with built-in transaction logging for economy tracking and anti-cheat verification
- Weapon Categories - Organize weapons into logical categories (pistols, rifles, shotguns, melee) for easy browsing and inventory management
- Stock Management - Optional stock limits create scarcity and restock timers that add realism to weapon availability
- Custom Blips & Markers - Fully customizable map markers and interaction points with support for different marker types and colors per location
- Anti-Exploit Protection - Built-in safeguards prevent duplicate purchases, price manipulation, and unauthorized access attempts
Perfect For
- Serious Roleplay Servers - Create authentic gun store experiences with licensing requirements, background checks, and regulated weapon sales
- Economy-Focused Communities - Control weapon distribution and pricing to maintain balanced server economies and create profitable business opportunities
- Law Enforcement Roleplay - Implement legal weapon tracking, license verification systems, and create scenarios around illegal weapons trafficking
- Gang/Criminal Servers - Set up underground weapon dealers with different inventories, higher prices, and riskier transaction locations
- Military/Tactical Servers - Create specialized armories with job restrictions for military or PMC factions with exclusive weapon access
Technical Details
- Framework Compatibility: ESX (Legacy/1.9.x), QBCore, Standalone
- Inventory Systems: ESX inventory, QBCore inventory, ox_inventory, custom inventories
- Performance: Optimized code with minimal resource usage (<0.02ms idle, <0.15ms active)
- Dependencies: Framework-specific (es_extended OR qb-core), optional: ox_lib for UI enhancements
- Database: Uses framework's existing database structure, no additional tables required
- Customization: Extensive config.lua with 100+ options, no code editing required for basic customization
Installation
- Download & Extract - Extract the CodeM mWeaponshop resource to your server's resources folder
- Configure Framework - Open config.lua and verify framework settings (auto-detection usually works, but manual override available)
- Set Shop Locations - Define weapon shop coordinates, inventories, and settings in the locations configuration table
- Configure Weapons - Customize weapon prices, categories, and availability in the weapons configuration section
- Add to Server.cfg - Add ensure codem-mweaponshop to your server.cfg file
- Restart Server - Restart your server and verify shops appear with correct blips and inventory
- Test Purchases - Make test purchases to confirm payment processing, inventory delivery, and license checking works correctly
Framework Compatibility
- ✅ ESX Legacy - Full support with automatic detection, works with all ESX inventory systems
- ✅ ESX 1.9.x - Compatible with older ESX versions including custom inventory modifications
- ✅ QBCore - Complete QBCore integration with qb-inventory and ox_inventory support
- ✅ Standalone - Can operate independently with custom inventory systems via export functions
What Makes It Stand Out
CodeM mWeaponshop excels in flexibility and presentation. While many weapon shop scripts offer basic functionality, CodeM delivers a polished, professional experience that feels like a real business. The UI is specifically designed to showcase weapons effectively - displaying stats, descriptions, and requirements clearly without overwhelming players with information. The multi-location system lets you create distinct weapon markets: legal gun stores in the city requiring licenses and ID, rural sporting goods stores with hunting rifles and shotguns, and underground dealers in sketchy locations with no-questions-asked sales at premium prices.
The script's configuration system is genuinely comprehensive without being complicated. You can set different weapon selections per location, create time-based availability (some weapons only available at certain hours), implement job-based discounts or restrictions, and even create VIP-only weapon tiers. The payment system is particularly well-thought-out, supporting both cash and card with configurable transaction fees, black money options for illegal dealers, and full logging for economy monitoring. For server owners serious about weapon roleplay and economic balance, CodeM mWeaponshop provides the tools to create a realistic, engaging firearm market that enhances your server's depth without adding complexity for players.
Configuration Highlights
- Per-Location Settings - Each shop can have unique opening hours, weapon selections, pricing multipliers, and job restrictions
- License Integration - Works with ESX licenses, QBCore licenses, or custom license systems via simple configuration
- Weapon Stats Display - Show or hide weapon damage, accuracy, range stats in the UI to inform player decisions
- Purchase Limits - Set daily/weekly purchase limits per player to prevent weapon hoarding and maintain scarcity
- Notification System - Customizable notifications for purchases, insufficient funds, closed shops, license requirements
Support and Updates
CodeM provides active support for mWeaponshop with regular updates to maintain compatibility with FiveM updates and popular framework changes. The script is actively maintained with bug fixes, feature additions based on community feedback, and optimizations for new FiveM builds. Documentation is comprehensive, covering installation, configuration, troubleshooting, and advanced customization scenarios.
https://www.youtube.com/watch?v=0BaplErfPbs
Related ESX Scripts