DMD Store Fishing System | Interactive Fishing | QB Core
DMD-Fishing
Complete fishing system with leaderboards, fish baskets, and delivery mechanics.
Transform your server with an immersive fishing experience. Players can fish using rods and bait, catch various fish species, craft fish baskets, and deliver them for profit. Includes a competitive leaderboard system.
Perfect for roleplay servers, economy systems, and peaceful activities.
----------------------------------------------------------------
FEATURES
Fishing Mechanics
• Useable fishing rod item
• Bait consumption system
• Random fish catching
• Multiple fish species with different rarities
• Length tracking for leaderboards
• Interactive fishing locations
Fish Species System
• Configurable fish types
• Random quantity ranges
• Weighted rarity system
• Fish images for inventory
• Unique properties per species
Fish Basket Crafting
• Craft baskets from caught fish
• Required fish amount per basket
• Inventory integration
• Basket item creation
• Sell baskets for profit
Delivery System
• Deliver fish baskets to NPCs
• Random price range
• Cash rewards
• Economy integration
• Configurable min/max prices
Leaderboard System
• MySQL database tracking
• Top 12 players displayed
• Fish length ranking
• Date/time stamps
• Player name display
• Web-based leaderboard UI
Database Integration
• Table: leaderboard
• Columns: player_name, length, caught_time
• Auto-ranking by fish length
• Time-formatted display
• OXMySQL support
----------------------------------------------------------------
ITEMS REQUIRED
Add these to qb-core/shared/items.lua:
• fishingrod - A rod for fishing (Useable)
• fishbait - Bait for fishing
• fishcontainer - A basket full of fish
----------------------------------------------------------------
EVENTS
Client Events
• dmd-fishing:start - Start fishing
• leaderboard:open - Open leaderboard
Server Events
• dmd-fishing:removebait - Remove bait
• dmd-fishing:reward - Give fish reward
• fishbasket:craft - Craft basket (requires fishName, amount)
• dmd:delivery - Deliver basket
----------------------------------------------------------------
DATABASE SETUP
Requires creating a "leaderboard" table with the following columns:
• id (Auto Increment)
• player_name
• length
• caught_time
----------------------------------------------------------------
COMPATIBILITY
• Framework: QBCore
• Database: OXMySQL
• Inventory: QB Inventory, OX Inventory
• UI: HTML5 NUI interface
----------------------------------------------------------------
SECURITY
Protected by DMD-LIB security system:
- Script name verification (dmd-fishing)
- Dependency validation
- Anti-leak protection
----------------------------------------------------------------
INSTALLATION
1. Ensure "dmd-lib", "qb-core", and "oxmysql" are installed
2. Extract "dmd-fishing" to resources
3. Run the included SQL database setup query
4. Add fishing items to shared items
5. Add to server.cfg:
ensure oxmysql
ensure dmd-lib
ensure qb-core
ensure dmd-fishing
6. Configure fish types and prices in cfg.lua
7. Restart server
----------------------------------------------------------------
DMD Store - Professional FiveM Resources