Install Instructions
Automatic SQL Injection
You'll notice in your lation_detecting/install directory a file named lation_detecting.sql - you do not need to import this manually into your database. Upon starting your server (or just the resource) it will automatically create and setup the necessary database table for you if it doesn't exist already.
Step 1 - Install Dependencies
There are two dependencies (other resources) required to get Advanced Metal Detecting installed properly & working: oxmysql & ox_lib. You may already have these installed, but please double check & ensure you have the latest version of each.
Important Notice
It is vitally important to ensure you start each resource in the correct order in your server.cfg. To begin, "oxmysql" should be one of, if not, the first resource started, followed by "ox_lib" - both of these should be started even before your framework (qb-core or es_extended).
Step 2 - Add Items
Next up, simply navigate to lation_detecting/install/items directory (or look below this message) and find your respective inventory resource. Open the text file (or expand the drop-down menu) and copy and paste the items into your inventory resource's item directory.
Where do I add items in my inventory?
If you are unsure exactly where and how to add items into your inventory, just expand the drop down menu for your inventory and at the top will tell you where you need to copy the items too!
ox_inventory
-- Add items into ox_inventory/data/items.lua
['blue_metaldetector'] = {
label = 'Beginner\'s Beacon',
weight = 475
},
['green_metaldetector'] = {
label = 'Lustrous Locator',
weight = 475
},
['red_metaldetector'] = {
label = 'Treasure Trove Tracker',
weight = 475
},
['orange_metaldetector'] = {
label = 'Goldseeker\'s Grail',
weight = 475
},
['black_metaldetector'] = {
label = 'Archaeo Ace',
weight = 475
},
['md_shovel'] = {
label = 'Shovel',
weight = 55
},
['md_bottlecap'] = {
label = 'Bottle Cap',
weight = 25
},
['md_brokenjunk'] = {
label = 'Broken Junk',
weight = 25
},
['md_crushedcan'] = {
label = 'Crushed Can',
weight = 25
},
['md_lighter'] = {
label = 'Lighter',
weight = 25
},
['md_metalcan'] = {
label = 'Metal Can',
weight = 25
},
['md_nails'] = {
label = 'Nails',
weight = 25
},
['md_needle'] = {
label = 'Needle',
weight = 25
},
['md_nickle'] = {
label = 'Nickle',
weight = 25
},
['md_nut'] = {
label = 'Nut',
weight = 25
},
['md_oldshotgunshell'] = {
label = 'Old Shotgun Shell',
weight = 25
},
['md_paperclip'] = {
label = 'Paper Clip',
weight = 25
},
['md_pulltab'] = {
label = 'Pull Tab',
weight = 25
},
['md_quarter'] = {
label = 'Quarter',
weight = 25
},
['md_rustyball'] = {
label = 'Rusty Ball',
weight = 25
},
['md_rustyironball'] = {
label = 'Rusty Iron Ball',
weight = 25
},
['md_rustyjunk'] = {
label = 'Rusty Junk',
weight = 25
},
['md_rustynails'] = {
label = 'Rusty Nails',
weight = 25
},
['md_rustypliers'] = {
label = 'Rusty Pliers',
weight = 25
},
['md_rustyring'] = {
label = 'Rusty Ring',
weight = 25
},
['md_rustyscissors'] = {
label = 'Rusty Scissors',
weight = 25
},
['md_rustyscrewdriver'] = {
label = 'Rusty Screwdriver',
weight = 25
},
['md_rustyspring'] = {
label = 'Rusty Spring',
weight = 25
},
['md_screw'] = {
label = 'Screw',
weight = 25
},
['md_wheatpenny'] = {
label = 'Wheat Penny',
weight = 25
},
['md_ancientcoin'] = {
label = 'Ancient Coin',
weight = 25
},
['md_blackwatch'] = {
label = 'Watch',
weight = 25
},
['md_coppernugget'] = {
label = 'Copper Nugget',
weight = 25
},
['md_diamondearings'] = {
label = 'Diamond Earings',
weight = 25
},
['md_diamondnecklace'] = {
label = 'Diamond Necklace',
weight = 25
},
['md_diamondring'] = {
label = 'Diamond Ring',
weight = 25
},
['md_earpod'] = {
label = 'Ear Pod',
weight = 25
},
['md_golddollar'] = {
label = 'Gold Dollar',
weight = 25
},
['md_goldearings'] = {
label = 'Gold Earings',
weight = 25
},
['md_goldnecklace'] = {
label = 'Gold Necklace',
weight = 25
},
['md_goldnugget'] = {
label = 'Gold Nugget',
weight = 25
},
['md_goldounce'] = {
label = '1oz Gold Bar',
weight = 25
},
['md_goldring'] = {
label = 'Gold Ring',
weight = 25
},
['md_halfdollar'] = {
label = 'Half Dollar',
weight = 25
},
['md_ironnugget'] = {
label = 'Iron Nugget',
weight = 25
},
['md_platinumnugget'] = {
label = 'Platinum Nugget',
weight = 25
},
['md_presidentialwatch'] = {
label = 'Presidential Watch',
weight = 25
},
['md_relicrevolver'] = {
label = 'Relic Revolver',
weight = 25
},
['md_silverdime'] = {
label = 'Silver Dime',
weight = 25
},
['md_silverearings'] = {
label = 'Silver Earings',
weight = 25
},
['md_silverounce'] = {
label = '1oz Silver Bar',
weight = 25
},
['md_silverring'] = {
label = 'Silver Ring',
weight = 25
},
qb-inventory
-- Add items into [qb]/qb-core/shared/items.lua
blue_metaldetector = { name = 'blue_metaldetector', label = 'Beginner\'s Beacon', weight = 475, type = 'item', image = 'blue_metaldetector.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
green_metaldetector = { name = 'green_metaldetector', label = 'Lustrous Locator', weight = 475, type = 'item', image = 'green_metaldetector.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
red_metaldetector = { name = 'red_metaldetector', label = 'Treasure Trove Tracker', weight = 475, type = 'item', image = 'red_metaldetector.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
orange_metaldetector = { name = 'orange_metaldetector', label = 'Goldseeker\'s Grail', weight = 475, type = 'item', image = 'orange_metaldetector.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
black_metaldetector = { name = 'black_metaldetector', label = 'Archaeo Ace', weight = 475, type = 'item', image = 'black_metaldetector.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
md_shovel = { name = 'md_shovel', label = 'Shovel', weight = 55, type = 'item', image = 'md_shovel.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = nil },
md_bottlecap = { name = 'md_bottlecap', label = 'Bottle Cap', weight = 25, type = 'item', image = 'md_bottlecap.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_brokenjunk = { name = 'md_brokenjunk', label = 'Broken Junk', weight = 25, type = 'item', image = 'md_brokenjunk.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_crushedcan = { name = 'md_crushedcan', label = 'Crushed Can', weight = 25, type = 'item', image = 'md_crushedcan.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_lighter = { name = 'md_lighter', label = 'Lighter', weight = 25, type = 'item', image = 'md_lighter.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_metalcan = { name = 'md_metalcan', label = 'Metal Can', weight = 25, type = 'item', image = 'md_metalcan.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_nails = { name = 'md_nails', label = 'Nails', weight = 25, type = 'item', image = 'md_nails.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_needle = { name = 'md_needle', label = 'Needle', weight = 25, type = 'item', image = 'md_needle.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_nickle = { name = 'md_nickle', label = 'Nickle', weight = 25, type = 'item', image = 'md_nickle.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_nut = { name = 'md_nut', label = 'Nut', weight = 25, type = 'item', image = 'md_nut.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_oldshotgunshell = { name = 'md_oldshotgunshell', label = 'Old Shotgun Shell', weight = 25, type = 'item', image = 'md_oldshotgunshell.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_paperclip = { name = 'md_paperclip', label = 'Paper Clip', weight = 25, type = 'item', image = 'md_paperclip.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_pulltab = { name = 'md_pulltab', label = 'Pull Tab', weight = 25, type = 'item', image = 'md_pulltab.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_quarter = { name = 'md_quarter', label = 'Quarter', weight = 25, type = 'item', image = 'md_quarter.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_rustyball = { name = 'md_rustyball', label = 'Rusty Ball', weight = 25, type = 'item', image = 'md_rustyball.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_rustyironball = { name = 'md_rustyironball', label = 'Rusty Iron Ball', weight = 25, type = 'item', image = 'md_rustyironball.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_rustyjunk = { name = 'md_rustyjunk', label = 'Rusty Junk', weight = 25, type = 'item', image = 'md_rustyjunk.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_rustynails = { name = 'md_rustynails', label = 'Rusty Nails', weight = 25, type = 'item', image = 'md_rustynails.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_rustypliers = { name = 'md_rustypliers', label = 'Rusty Pliers', weight = 25, type = 'item', image = 'md_rustypliers.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_rustyring = { name = 'md_rustyring', label = 'Rusty Ring', weight = 25, type = 'item', image = 'md_rustyring.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_rustyscissors = { name = 'md_rustyscissors', label = 'Rusty Scissors', weight = 25, type = 'item', image = 'md_rustyscissors.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_rustyscrewdriver = { name = 'md_rustyscrewdriver', label = 'Rusty Screwdriver', weight = 25, type = 'item', image = 'md_rustyscrewdriver.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_rustyspring = { name = 'md_rustyspring', label = 'Rusty Spring', weight = 25, type = 'item', image = 'md_rustyspring.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_screw = { name = 'md_screw', label = 'Rusty Screw', weight = 25, type = 'item', image = 'md_screw.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_wheatpenny = { name = 'md_wheatpenny', label = 'Wheat Penny', weight = 25, type = 'item', image = 'md_wheatpenny.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_ancientcoin = { name = 'md_ancientcoin', label = 'Ancient Coin', weight = 25, type = 'item', image = 'md_ancientcoin.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_blackwatch = { name = 'md_blackwatch', label = 'Black Watch', weight = 25, type = 'item', image = 'md_blackwatch.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_coppernugget = { name = 'md_coppernugget', label = 'Copper Nugget', weight = 25, type = 'item', image = 'md_coppernugget.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_diamondearings = { name = 'md_diamondearings', label = 'Diamond Earrings', weight = 25, type = 'item', image = 'md_diamondearings.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_diamondnecklace = { name = 'md_diamondnecklace', label = 'Diamond Necklace', weight = 25, type = 'item', image = 'md_diamondnecklace.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_diamondring = { name = 'md_diamondring', label = 'Diamond Ring', weight = 25, type = 'item', image = 'md_diamondring.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_earpod = { name = 'md_earpod', label = 'Ear Pod', weight = 25, type = 'item', image = 'md_earpod.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_golddollar = { name = 'md_golddollar', label = 'Gold Dollar', weight = 25, type = 'item', image = 'md_golddollar.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_goldearings = { name = 'md_goldearings', label = 'Gold Earrings', weight = 25, type = 'item', image = 'md_goldearings.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_goldnecklace = { name = 'md_goldnecklace', label = 'Gold Necklace', weight = 25, type = 'item', image = 'md_goldnecklace.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_goldnugget = { name = 'md_goldnugget', label = 'Gold Nugget', weight = 25, type = 'item', image = 'md_goldnugget.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_goldounce = { name = 'md_goldounce', label = '1oz Gold Bar', weight = 25, type = 'item', image = 'md_goldounce.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_goldring = { name = 'md_goldring', label = 'Gold Ring', weight = 25, type = 'item', image = 'md_goldring.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_halfdollar = { name = 'md_halfdollar', label = 'Half Dollar', weight = 25, type = 'item', image = 'md_halfdollar.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_ironnugget = { name = 'md_ironnugget', label = 'Iron Nugget', weight = 25, type = 'item', image = 'md_ironnugget.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_platinumnugget = { name = 'md_platinumnugget', label = 'Platinum Nugget', weight = 25, type = 'item', image = 'md_platinumnugget.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_presidentialwatch = { name = 'md_presidentialwatch', label = 'Presidential Watch', weight = 25, type = 'item', image = 'md_presidentialwatch.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_relicrevolver = { name = 'md_relicrevolver', label = 'Relic Revolver', weight = 25, type = 'item', image = 'md_relicrevolver.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_silverdime = { name = 'md_silverdime', label = 'Silver Dime', weight = 25, type = 'item', image = 'md_silverdime.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_silverearings = { name = 'md_silverearings', label = 'Silver Earrings', weight = 25, type = 'item', image = 'md_silverearings.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_silverounce = { name = 'md_silverounce', label = '1oz Silver Bar', weight = 25, type = 'item', image = 'md_silverounce.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
md_silverring = { name = 'md_silverring', label = 'Silver Ring', weight = 25, type = 'item', image = 'md_silverring.png', unique = false, useable = false, shouldClose = true, combinable = nil, description = nil },
qs-inventory
-- Add items into [qb]/qb-core/shared/items.lua if on QBCore
-- Add items into qs-inventory/shared/items.lua if on ESX
['blue_metaldetector'] = {
['name'] = 'blue_metaldetector',
['label'] = 'Beginner\'s Beacon',
['weight'] = 475,
['type'] = 'item',
['image'] = 'blue_metaldetector.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['green_metaldetector'] = {
['name'] = 'green_metaldetector',
['label'] = 'Lustrous Locator',
['weight'] = 475,
['type'] = 'item',
['image'] = 'green_metaldetector.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['red_metaldetector'] = {
['name'] = 'red_metaldetector',
['label'] = 'Treasure Trove Tracker',
['weight'] = 475,
['type'] = 'item',
['image'] = 'red_metaldetector.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['orange_metaldetector'] = {
['name'] = 'orange_metaldetector',
['label'] = 'Goldseeker\'s Grail',
['weight'] = 475,
['type'] = 'item',
['image'] = 'orange_metaldetector.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['black_metaldetector'] = {
['name'] = 'black_metaldetector',
['label'] = 'Archaeo Ace',
['weight'] = 475,
['type'] = 'item',
['image'] = 'black_metaldetector.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_shovel'] = {
['name'] = 'md_shovel',
['label'] = 'Shovel',
['weight'] = 55,
['type'] = 'item',
['image'] = 'md_shovel.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_bottlecap'] = {
['name'] = 'md_bottlecap',
['label'] = 'Bottle Cap',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_bottlecap.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_brokenjunk'] = {
['name'] = 'md_brokenjunk',
['label'] = 'Broken Junk',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_brokenjunk.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_crushedcan'] = {
['name'] = 'md_crushedcan',
['label'] = 'Crushed Can',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_crushedcan.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_lighter'] = {
['name'] = 'md_lighter',
['label'] = 'Lighter',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_lighter.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_metalcan'] = {
['name'] = 'md_metalcan',
['label'] = 'Metal Can',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_metalcan.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_nails'] = {
['name'] = 'md_nails',
['label'] = 'Nails',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_nails.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_needle'] = {
['name'] = 'md_needle',
['label'] = 'Needle',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_needle.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_nickle'] = {
['name'] = 'md_nickle',
['label'] = 'Nickle',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_nickle.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_nut'] = {
['name'] = 'md_nut',
['label'] = 'Nut',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_nut.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_oldshotgunshell'] = {
['name'] = 'md_oldshotgunshell',
['label'] = 'Old Shotgun Shell',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_oldshotgunshell.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_paperclip'] = {
['name'] = 'md_paperclip',
['label'] = 'Paper Clip',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_paperclip.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_pulltab'] = {
['name'] = 'md_pulltab',
['label'] = 'Pull Tab',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_pulltab.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_quarter'] = {
['name'] = 'md_quarter',
['label'] = 'Quarter',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_quarter.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_rustyball'] = {
['name'] = 'md_rustyball',
['label'] = 'Rusty Ball',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_rustyball.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_rustyironball'] = {
['name'] = 'md_rustyironball',
['label'] = 'Rusty Iron Ball',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_rustyironball.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_rustyjunk'] = {
['name'] = 'md_rustyjunk',
['label'] = 'Rusty Junk',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_rustyjunk.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_rustynails'] = {
['name'] = 'md_rustynails',
['label'] = 'Rusty Nails',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_rustynails.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_rustypliers'] = {
['name'] = 'md_rustypliers',
['label'] = 'Rusty Pliers',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_rustypliers.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_rustyring'] = {
['name'] = 'md_rustyring',
['label'] = 'Rusty Ring',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_rustyring.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_rustyscissors'] = {
['name'] = 'md_rustyscissors',
['label'] = 'Rusty Scissors',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_rustyscissors.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_rustyscrewdriver'] = {
['name'] = 'md_rustyscrewdriver',
['label'] = 'Rusty Screwdriver',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_rustyscrewdriver.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_rustyspring'] = {
['name'] = 'md_rustyspring',
['label'] = 'Rusty Spring',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_rustyspring.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_screw'] = {
['name'] = 'md_screw',
['label'] = 'Rusty Screw',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_screw.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_wheatpenny'] = {
['name'] = 'md_wheatpenny',
['label'] = 'Wheat Penny',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_wheatpenny.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_ancientcoin'] = {
['name'] = 'md_ancientcoin',
['label'] = 'Ancient Coin',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_ancientcoin.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_blackwatch'] = {
['name'] = 'md_blackwatch',
['label'] = 'Black Watch',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_blackwatch.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_coppernugget'] = {
['name'] = 'md_coppernugget',
['label'] = 'Copper Nugget',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_coppernugget.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_diamondearings'] = {
['name'] = 'md_diamondearings',
['label'] = 'Diamond Earrings',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_diamondearings.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_diamondnecklace'] = {
['name'] = 'md_diamondnecklace',
['label'] = 'Diamond Necklace',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_diamondnecklace.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_diamondring'] = {
['name'] = 'md_diamondring',
['label'] = 'Diamond Ring',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_diamondring.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_earpod'] = {
['name'] = 'md_earpod',
['label'] = 'Ear Pod',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_earpod.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_golddollar'] = {
['name'] = 'md_golddollar',
['label'] = 'Gold Dollar',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_golddollar.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_goldearings'] = {
['name'] = 'md_goldearings',
['label'] = 'Gold Earrings',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_goldearings.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_goldnecklace'] = {
['name'] = 'md_goldnecklace',
['label'] = 'Gold Necklace',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_goldnecklace.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_goldnugget'] = {
['name'] = 'md_goldnugget',
['label'] = 'Gold Nugget',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_goldnugget.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_goldounce'] = {
['name'] = 'md_goldounce',
['label'] = '1oz Gold Bar',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_goldounce.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_goldring'] = {
['name'] = 'md_goldring',
['label'] = 'Gold Ring',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_goldring.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_halfdollar'] = {
['name'] = 'md_halfdollar',
['label'] = 'Half Dollar',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_halfdollar.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_ironnugget'] = {
['name'] = 'md_ironnugget',
['label'] = 'Iron Nugget',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_ironnugget.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_platinumnugget'] = {
['name'] = 'md_platinumnugget',
['label'] = 'Platinum Nugget',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_platinumnugget.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_presidentialwatch'] = {
['name'] = 'md_presidentialwatch',
['label'] = 'Presidential Watch',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_presidentialwatch.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_relicrevolver'] = {
['name'] = 'md_relicrevolver',
['label'] = 'Relic Revolver',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_relicrevolver.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_silverdime'] = {
['name'] = 'md_silverdime',
['label'] = 'Silver Dime',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_silverdime.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_silverearings'] = {
['name'] = 'md_silverearings',
['label'] = 'Silver Earrings',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_silverearings.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_silverounce'] = {
['name'] = 'md_silverounce',
['label'] = '1oz Silver Bar',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_silverounce.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
['md_silverring'] = {
['name'] = 'md_silverring',
['label'] = 'Silver Ring',
['weight'] = 25,
['type'] = 'item',
['image'] = 'md_silverring.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = nil
},
Step 3 - Add Images
Very similar to step one, except this time we will be adding the images for each item we added above into our respective inventory directories for images. Navigate to lation_detecting/install/images to find all the images or download the ZIP file attached below then follow the instructions below for your inventory system.
Step 4 - Setup Config
Before you launch your server for the first time with the new resource it is best to ensure you have some general options set to your preferred options. At the top of the config you will find the following:
----------------------------------------------
-- 🛠️ Setup the basics below
----------------------------------------------
Config.Setup = {
-- Use only if needed, directed by support or know what you're doing
-- Notice: enabling debug features will significantly increase resmon
-- And should ALWAYS be disabled in production
-- When debug is enabled you get access to a new command: /simulate
-- For example: /simulate 1 500 will print results of 500 finds with the level 1 detector
-- Can be used to test and refine your "chance" settings on each item for each level
debug = false,
-- Set your interaction system below
-- Available options are: 'ox_target', 'qb-target', 'interact', 'textui' & 'custom'
-- 'custom' needs to be added to client/functions.lua
interact = 'textui',
-- Set your notification system below
-- Available options are: 'ox_lib', 'esx', 'qb', 'okok', 'sd-notify', 'wasabi_notify' & 'custom'
-- 'custom' needs to be added to client/functions.lua
notify = 'ox_lib',
-- Do you want to be notified via server console if an update is available?
version = true,
-- The below is only used if interact = 'textui'
-- This will be the key used for interactions, default is E
-- More options here: https://docs.fivem.net/docs/game-references/controls/
control = 38,
-- The command used to open the metal detecting statistics menu
command = 'metaldetecting'
}
By default, the Config.Setup.target value will be set to 'textui' which means no target system will be used and instead TextUI interactions will be used. If you wish to use a targeting system instead, you must specify which target system you use from the available options listed.
Furthermore, there are countless other configurations that can be made in the config file to customize the script to your liking and fit your server's specific needs! Every option in the config is detailed with comments explaining the use & effects of each option - so please read diligently and carefully.
Step 5 - Ensure Resource
The final step is simple - drag and drop the lation_detecting resource into your main resources directory or even a sub-folder. Open your server.cfg and add "ensure lation_detecting" to the bottom. As mentioned above, resource start order is vitally important and you must ensure that lation_detecting is started after all dependencies (and your framework).
Lastly - save, restart your server & enjoy the most advanced metal detecting script on FiveM!
Upgrading to version 2+
If you're already an owner of the Advanced Metal Detecting resource, you are in the right place. Expand the drop down menu below to learn how to properly upgrade to version 2.0.0+. If this is your first time installing Advanced Metal Detecting, this section is not for you!
Important
Please read the instructions below BEFORE running version 2.0.0+ of the Metal Detecting resource in your server! If you do, it's okay, but will require an extra step to undo a certain action. Please open a support ticket in our Discord if you are stuck!
Get started upgrading to version 2+
First and foremost, upgrading to version 2.0.0+ or later from version 1.0.0+ will NOT incur any loss of data. All your current data will remain, as we only have one simple step to complete.
Before launching your server for the first time with the new version, you must complete one simple step. Inside your lation_detecting/install folder you'll find an SQL file, named "rename_table.sql". That query can also be found here:
ALTER TABLE metal_detecting RENAME TO lation_detecting;
ALTER TABLE lation_detecting RENAME COLUMN player_identifier TO identifier;
All you have to do is execute that query in your database! This will simply change the name of your current metal detecting database table from "metal_detecting" to "lation_detecting", then rename the "player_identifier" column to a simpler "identifier" & that is it!
If you failed to do this step before launching your server for the first time with version 2, it's okay. You will just need to delete the "lation_detecting" table now found in your database, execute the query from rename_table.sql and now you are all set! This will again, simply change the name of your current table that stores all the current player data in "metal_detecting" to the new naming scheme used by all our resources.
That's all! This step is done simply to maintain uniformity and ease-of-use when interacting with Lation Script's resources and the database.
Last updated