[QB-CORE] Metal Detecting

Preview Video :camera:


Purchase via Tebex :arrow_backward:


Features :star:

  • A Metal Detecting Script for QB-Core That Gives Common and Rare Items That You Can Sell
  • Easily Move All Locations via the Config File
  • Easily Add Your Own Detecting Locations via the Config File
  • Add Your Own Items to Be Found and Sold via the Config File and Menus File
  • Useable Metal Detector and Rake to Search for Items
  • Chance for Metal Detector to Overheat
  • Toggle Sounds Being Played When Items Are Found [Requires Interact-Sound]
  • Secure Server Events with Item Checks to Prevent Abuse and Exploits
  • Extensive Config File Where You Can Make Multiple Changes to Suit Your Server Needs

8 Locations To Search By Default :mag:

  • Vespucci Beach
  • Vespucci Pier Beach
  • Great Ocean Highway Beach
  • Zancudo Swamp
  • Paleto Beach
  • Los Santos Airport Beach
  • Cypress Flats Beach

12 Common Items To Be Found :gift:

  • Coins
  • Pull Tab
  • Aluminum Can
  • Tin Can
  • Keys
  • Rusty Nail
  • Bottle Cap
  • Cutlery
  • Belt Buckle
  • Bullet Casings
  • Metal Chain
  • Metal Scrap

8 Rare Items To Be Found :coin:

  • Gold Ring
  • Gold Watch
  • Silver Watch
  • Silver Necklace
  • Ancient Coin
  • Gold Nugget
  • Pocket Watch
  • Diamond Ring

Supported Scripts :handshake:

Notifications

  • qb-core Notify
  • okokNotify
  • mythic_notify
  • boii_ui notify

Targets

  • qb-target
  • ox_target

Inventories

  • qb-inventory
  • ox_inventory

DEPENDENCIES

Code is accessible Yes
Subscription-based No
Lines (approximately) 1000+
Requirements qb-core, qb-target, qb-menu, qb-inventory, qb-input polyzone, interact sound, ox_lib
Support Yes

SCRIPT UPDATE

Metal Detecting
Version 1.1.0

  • Complete refactor of code for easier configuration and editing with new config layout

  • New files inside SHARED folder for configuration: config.lua, menus.lua, targets.lua

  • Support added for ox_target and ox_lib context menu

  • Improved the calculations for metal detector overheating and the length of time it takes to cool down

  • Improved the rewards table and chances to get common and rare items

  • Removed the need for RP/DP Emotes [all animations are now done natively instead]

Does this support ox_inv?

not currently, coming in a future update though across ALL scripts

Very good video with lots of information and showcases. :+1: :heart:

1 Like

thank you for your kind words, I try and explain as much as I can in a short video :stuck_out_tongue:

1 Like

Metal Detecting
Version 1.2.0

  • Complete refactor of code with major improvements
  • Added support for ox_inventory
  • Major quality of life improvements to aid in performance
  • Re-written some functions & events to aid in performance
  • New minigame for metal detecting
  • Improvements to rewards given from detecting
  • Chances to find common and rare items
  • Added XP system
  • New selling system
  • Added an option to buy metal detector from item seller store
  • Removed the β€˜RAKE’ item as it was just repeated code and unnecessary

Script Update
Version 1.2.1

  • re-wrote selling method for better performance and to remove duplicate code
  • improved target location for item seller
  • removed option to buy metal detector from item seller - now need to add your own methods of obtaining detector
  • improved code for target location and added it to metaldetecting_client file instead
  • removed the file named targets.lua as its not needed anymore
  • improved the animation for scanning and digging items
1 Like

Script Update

Version 2.0.0

  • Refactored code to improve performance
  • Improved notification function to prevent duplicate code
  • Improved config file for a better understanding
  • Added Config.Animations for easier configuration for custom anims etc
  • Improved ped spawns and added local entity for targets
  • Improved chance for metal detector to overheat
  • Utilised lib.skillcheck and lib.progresscircle for events for a cleaner UI with more options
  • Added metal safe as a special item the player can dig up, get a drill and then attempt to open the safe for a chance to get cash
  • useable metal safe that places an object for the player to interact with
  • Improved checks for various events for security and to prevent exploits or abuse
  • Improved resource stopping event
  • Improved useable items to prevent repeat code
  • Improved callbacks for item checks and amounts
  • Majorly improved reward system from detecting items and chances to find category items
  • Various other QOL improvements
  • Updated README file
  • Improved checks for ox_inventory can carry items

Script Update

Version 2.0.1

  • Added direct support for latest qb-inventory methods removing the use of Player.Functions.Add/Remove Items
  • Updated README file and included item list for ox_inventory
  • Added Config.Blips for detecting zones
  • Added Config.SafeContents with configurable options for items or cash from opening metal safe
  • Added Config.Language for custom translations
  • Added Config.Chances for easier configuration of luck in events
  • Changed safe model and improved animation
  • Impoved target options for metal safe
  • Added item images to menu
  • Improved how items are given and removed for better performance and increased security
  • Imrpoved XP functions and return amounts to reduce code
  • Various other QOL features and improvements
  • Removed support for qb-menu as ox_lib has more features