[ESX] Treasure


Tebex

Hi everyone

I am here to introduce you to the best and newest treasure finding system

First check video

First go to the black market and buy the item

Then click on Find Area

Get there quickly before time runs out

Excavation locations are specified for you and you should start the excavation with the required item

Return to Black Market after the excavations are completed and sell the items obtained.

You can specify different areas to find the treasure

You can easily set your own items for each area and put different animations for each area when navigating.

features

  • Open source

  • Customizability

  • fully optimized 0.00 ms in idle and 0.07 ms when you near the markers

  • BlackMarket included

Config File

config = {}
config.distance = 3.0
config.police_alarm = false

config.shop_stations = {
    [1] = {
        Blip = {
            name = 'Black Market',
            Pos =  { x = -54.99, y = -1213.64, z = 27.69 ,h = 113.97},
            Sprite  = 463,
            Display = 4,
            Scale   = 0.9,
            Colour  = 63,
        },
        Ped = {
            spawn_ped = true,
            ped_model = "csb_prologuedriver"

        },
        buy_items = {
            {label = "Shovel", item = "ba-shovel", price = 20},
            {label = "Pick axe", item = "ba-pickaxe", price = 15},
        },
        sell_items = {
            {label = "Jewels", item = "jewels", price = 100},
            {label = "Copper", item = "copper", price = 10}
        }
    },
}

config.zones = {
    [1] = {
        Specifications = {
            zone = 'A',
            Pos = {x = -753.68, y = 2192.76, z = 95.47},
            mine = {x = -595.98, y = 2089.73, z = 131.41},
            radius = 250.0,
            time = 120,  -- second
            item = {name ='ba-pickaxe', label = 'Pick Axe'},
            color = 187
        },
        Markers = {
            { x = -591.47, y =  2076.52, z = 131.29, active = true },
            { x = -590.35, y = 2071.76, z = 131.19 , active = true},
            { x = -589.61, y = 2069.3, z = 131.19 , active = true},
            {x = -588.6, y = 2064.03, z = 130.969 , active = true}
        }

    },
    [2] = {
        Specifications = {
            zone = 'B',
            Pos = {x = -1508.49, y = 4308.45, z = 5.66},
            mine = {x = -1512.20, y = 4472.23, z = 17.82},
            radius = 250.0,
            item = {name ='ba-shovel', label = 'Shovel'},
            time = 120, -- second
            color = 16
        },
        Markers = {
            { x = -1512.86, y =  4431.95, z = 13.25 , active = true},
            { x = -1506.05, y = 4413.11, z = 18.05 , active = true},
            { x = -1487.39, y = 4420.64, z = 21.39 , active = true}
        }

    }
}

config.items = {
    [1] = {chance = 12, id = "silencer", name = 'Silencer', quantity = 1, limit = 5},
    [2] = {chance = 5, id = "iron", name = 'Iron', quantity = 2, limit = 10},
    [3] = {chance = 7, id = "electronics", name = 'Electronics Kit', quantity = 1, limit = 10},
    [4] = {chance = 3, id = "brokenfishingrod", name = 'Broken Fishing Rod', quantity = 1, limit = 3},
    [5] = {chance = 2, id = "wood", name = 'Wood', quantity = 7, limit = 100},
    [6] = {chance = 14, id = "usbtrojan", name = 'USB TROJAN', quantity = 1, limit = 2},
    [7] = {chance = 1, id = "stone", name = 'Stone', quantity = 10, limit = 100},
    [8] = {chance = 7, id = "cartire", name = 'Car Tire', quantity = 2, limit = 30},
    [9] = {chance = 16, id = "sodium_hydroxide", name = 'Sodium Hydroxide', quantity = 1, limit = 3},
    [10] = {chance = 17, id = "rasperry", name = 'rasperry', quantity = 1, limit = 1},
    [11] = {chance = 2, id = "rubber", name = 'Rubber', quantity = 8, limit = 100},
    [12] = {chance = 10, id = "lockpick", name = 'Lock Pick', quantity = 2, limit = 5},
    [13] = {chance = 3, id = "loole", name = 'Pipe', quantity = 5, limit = 50},
    [14] = {chance = 3, id = "fanar", name = 'Fanar', quantity = 5, limit = 50},
    [15] = {chance = 8, id = "fabric", name = 'Parche', quantity = 2, limit = 50},
    [16] = {chance = 11, id = "boxpistol", name = 'Box Pistol', quantity = 1, limit = 10}   
}

function notify_server(source, type, text)
    TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = type, text = text })
end

function notify_client(type, text)
    exports['mythic_notify']:DoHudText(type, text)
end

function pay(source, amount)
    local xPlayer = ESX.GetPlayerFromId(source)
    xPlayer.removeMoney(amount)
end

function sale_pay(source, amount)
    local xPlayer = ESX.GetPlayerFromId(source)
    xPlayer.addMoney(amount)
end

function GetItems(source, item)
    local xPlayer = ESX.GetPlayerFromId(source)
    local items_info = xPlayer.getInventoryItem(item)
    return items_info
end

function RemoveItems(source, item, count)
    local xPlayer = ESX.GetPlayerFromId(source)
    xPlayer.removeInventoryItem(item, count)
end

function addItem(source, item, count)
    local xPlayer = ESX.GetPlayerFromId(source)
    xPlayer.addInventoryItem(item, count)
end

function GetMoney(source)
    local xPlayer = ESX.GetPlayerFromId(source)
    money = xPlayer.money
    return money
end

requirements

  • any version of esx
  • menu defualt
  • progressBar
  • mythic_notify

Tebex

you can buy the script from Here

3 Likes

That seems cool, good job

1 Like