⬇️Installation

Installation

QBCore / QBBox

1. Add items to qb-core/shared/items.lua:

-- Maps and tools
['treasure_map'] = {
    ['name'] = 'treasure_map',
    ['label'] = 'Treasure Map',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'treasure_map.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A mysterious map indicating the location of a hidden treasure'
},
['metal_detector'] = {
    ['name'] = 'metal_detector',
    ['label'] = 'Metal Detector',
    ['weight'] = 2000,
    ['type'] = 'item',
    ['image'] = 'metal_detector.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A professional metal detector to locate hidden objects'
},
['shovel'] = {
    ['name'] = 'shovel',
    ['label'] = 'Shovel',
    ['weight'] = 1500,
    ['type'] = 'item',
    ['image'] = 'shovel.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A sturdy shovel for digging and unearthing treasures'
},
['metal_saw'] = {
    ['name'] = 'metal_saw',
    ['label'] = 'Metal Saw',
    ['weight'] = 1000,
    ['type'] = 'item',
    ['image'] = 'metal_saw.png',
    ['unique'] = false,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A powerful metal saw to open locked chests'
},

-- Chests
['small_treasure'] = {
    ['name'] = 'small_treasure',
    ['label'] = 'Small Treasure',
    ['weight'] = 5000,
    ['type'] = 'item',
    ['image'] = 'small_treasure.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A small chest filled with gold coins and precious artifacts'
},
['medium_treasure'] = {
    ['name'] = 'medium_treasure',
    ['label'] = 'Medium Treasure',
    ['weight'] = 7500,
    ['type'] = 'item',
    ['image'] = 'medium_treasure.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A medium-sized chest containing appreciable riches'
},
['large_treasure'] = {
    ['name'] = 'large_treasure',
    ['label'] = 'Large Treasure',
    ['weight'] = 10000,
    ['type'] = 'item',
    ['image'] = 'large_treasure.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'An imposing chest filled with precious treasures'
},
['legendary_treasure'] = {
    ['name'] = 'legendary_treasure',
    ['label'] = 'Legendary Treasure',
    ['weight'] = 15000,
    ['type'] = 'item',
    ['image'] = 'legendary_treasure.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A legendary chest containing priceless and rare treasures'
},

-- Gold coins
['old_gold_coin'] = {
    ['name'] = 'old_gold_coin',
    ['label'] = 'Old Gold Coin',
    ['weight'] = 10,
    ['type'] = 'item',
    ['image'] = 'old_gold_coin.png',
    ['unique'] = false,
    ['useable'] = false,
    ['shouldClose'] = false,
    ['combinable'] = nil,
    ['description'] = 'An ancient gold coin. Each coin is worth $10'
},

2. Add weapon to qb-core/shared/weapons.lua:

3. Add images

Place item images in qb-inventory/html/images/ or your inventory images folder.


ESX

1. Execute this SQL query:

2. Add images

Place item images in your inventory images folder (usually es_extended/html/img/items/ or ox_inventory/web/images/).

Prerequisites

  • FiveM Server running on QBCore or ESX or QBOX or CUSTOM framework.

  • MySQL database setup.

Download and Installation

  1. Buy the script from Tebex Storearrow-up-right.

  2. Unzip the file and place the folder in your server's resources directory.

  3. Import the SQL file into your MySQL database.

  4. Add start [TREASURE] to your server’s server.cfg.

Last updated