Glitched Scripts
Metal Detecting

Items

Paste-in detector and battery defs for ox_inventory, QBCore, and ESX.

Names must match Config.Detectors and Config.Battery in shared/config.lua. Skip any item you already have, especially battery. Copy matching icons into your inventory image folder (metaldetector.png, metaldetector_adv.png, metaldetector_pro.png, battery.png).

Loot drops (metalscrap, goldchain, and so on) are not listed here. Change those names in Config.Loot.

Source file: items/items.lua. ESX SQL: items/esx.sql.

Detectors are usable items (equip / unequip). Battery is usable while a detector is equipped. Registration uses CreateUsableItem in server/edit.lua.