💡Installation
Download & Extract
Obtain the script (e.g., from Tebex or a Git repo).
Place the folder in your FiveM
resourcesdirectory:resources/[local]/advanced_metaldetectorRename if needed.
Add to Server Config
ensure advanced_metaldetectorChange
advanced_metaldetectorif your folder has another name.
Dependencies
Ensure ESX (
es_extended) or QBCore (qb-core) is started before this script if you setConfig.Framework = "auto".MySQL or an equivalent DB connector is required for storing tasks, scoreboard data, or item references.
INSERT IGNORE INTO items (name, label, weight) VALUES ('metal_detector','Metal Detector',1);
INSERT IGNORE INTO items (name, label, weight) VALUES ('pizza','Pizza',1);
INSERT IGNORE INTO items (name, label, weight) VALUES ('icedtea','Iced Tea',1);
INSERT IGNORE INTO items (name, label, weight) VALUES ('fries','Fries',1);
INSERT IGNORE INTO items (name, label, weight) VALUES ('energy','Energy Drink',1);
INSERT IGNORE INTO items (name, label, weight) VALUES ('jewelry','Jewelry',1);
INSERT IGNORE INTO items (name, label, weight) VALUES ('rock','Rock',1);
INSERT IGNORE INTO items (name, label, weight) VALUES ('gold','Gold Nugget',1);
INSERT IGNORE INTO items (name, label, weight) VALUES ('bone','Bone',1);
INSERT IGNORE INTO items (name, label, weight) VALUES ('coin','Ancient Coin',1);
INSERT IGNORE INTO items (name, label, weight) VALUES ('battery','Battery',1);
INSERT IGNORE INTO items (name, label, weight) VALUES ('shovel','Shovel',1);
Last updated