[ESX/Paid] D2D-Treasure | Use a Treasure map to find valuable items and dig them up!

A script by DareToDoyle

No reviews yet.
[ESX/Paid] D2D-Treasure | Use a Treasure map to find valuable items and dig them up! main image

Price

Unknown

Full Description

Presenting my latest creation D2D-Treasure!

Please Note: This script was created using the latest install of ESX Legacy

Features
  • Usable Shovel/Map item that can’t be exploited.

  • Fully custom Config.lua to fit your server needs.

  • Open sourced so you can change the code.

  • Discord Logs that you can customise to have either Steam, License or Discord ID’s. Preview

  • Minimal impact of resource monitor due to no threads.

Preview

There are no dependencies with the script but I made it using RProgress for the bars. You can disable this in the config or install your own (I can help if you want).

Players will need a way to access the shovel/map and to sell the items, I have not included this in the script hence the very low price. Most servers would have a way of already incorporating that such as shops.

I have tried to protect the triggers and tested vigorously but can only do so much without feedback. I will release updates in due time for any exploits that you find.

Purchase on Tebex (open source available): Here

Here is how the Config.lua is formatted:

Config = {}

Config.DiscordWebhook = "https://discord.com/api/webhooks/1063289408075337880/q0bgx42yHN929qTNZbuykG_fHjI3dvZgrlLoXv7w0WgWqSQ5LcPLk9zyyWCOQI0GtBgN" -- Generate your webhook here.

Config.WebhookName = "Server Name" -- Put your servers name here.

Config.WebhookID = "discord" -- What ID the discord logs should use, by default I use Discord accounts. If the logs wont show discord accounts change to either "steam" or "license" depending on your server.

Config.MapItem = "map" -- Usable map item

Config.ShovelItem = "shovel" -- Usable shovel item

Config.TreasureLocation = {

    vector3(2818.3513, -633.9381, 2.4764),
    vector3(-3156.8174, 3270.6958, 1.9094),
    vector3(-1473.1899, -1229.3169, 2.9997),
    vector3(350.5465, 6910.3511, 5.4721),

 }

Config.RProgress = true -- Only set to true if you are using https://github.com/Mobius1/rprogress

Config.DigTime = "5" -- In seconds, how long it takes to dig.

Config.RewardChance = "3" -- E.G 1 in 5 chance of digging will reward you. If you want it to reward you all the time put "1".

Config.ShovelBreakChance = "1" -- E.G 1 in 15 chance of digging will break your shovel.
 
Config.RewardItems = {"gold", "diamond"}

Config.Cooldown = "1" -- In minutes, how often you can use the map.

RegisterNetEvent('D2D-Treasure:ServerNotifications')
AddEventHandler('D2D-Treasure:ServerNotifications', function(msg, Time, Type)
   TriggerEvent("esx:showNotification", msg) -- ESX
   
   --exports['okokNotify']:Alert('Treasure', msg, Time, Type) -- okokNotify
end)


Config.Translation = {
    ["too_far"] = "You are not near any treasure. No point in digging.",
    ["vehicle"] = "Get out of your vehicle to start digging.",
    ["map_cooldown"] = "The map is unreadable, try again in %s minutes.",
    ["streetName"] = "The map says that the treasure is near %s.",
    ["found"] = "You have found a %s.",
    ["no_reward"] = "Nothing yet. Keep digging!",
    ["broken_shovel"] = "The ground was too hard and you snapped your shovel."
}
Code is accessible Yes
Subscription-based No
Lines (approximately) 300
Requirements ESX
Support Yes