Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- --Coordinates
- Config.treasures = {
- --DO NOT CHANGE !Opened! VALUE unless you know what you're doing!
- {x = 499.63, y = 5607.63, z = 795.67, Opened = false, Treasure}, --1
- {x = 455.46, y = -839.52, z = 26.65, Opened = false, Treasure}, --2
- {x = -336.02, y = -958.33, z = 30.61, Opened = false, Treasure}, --3
- {x = 694.34, y = 551.54, z = 128.05, Opened = false, Treasure}, --4
- {x = -1577.89, y = -970.92, z = 16.41, Opened = false, Treasure}, --5
- {x = -1888.38, y = -582.74, z = 10.83, Opened = false, Treasure}, --6
- {x = -2293.29, y = 209.6, z = 166.6, Opened = false, Treasure}, --7
- {x = -1350.04, y = 21.74, z = 52.45, Opened = false, Treasure}, --8
- {x = 3604.26, y = 3736.03, z = 27.69, Opened = false, Treasure}, --9
- {x = 2136.27, y = 4831.88, z = 40.64, Opened = false, Treasure}, --10
- {x = 1710.66, y = 3611.14, z = 34.09, Opened = false, Treasure}, --11
- {x = 781.72, y = -3187.66, z = 5.09, Opened = false, Treasure}, --12
- {x = 153.92, y = -3108.18, z = 4.9, Opened = false, Treasure}, --13
- {x = -347.7, y = -1862.19, z = 27.66, Opened = false, Treasure}, --14
- {x = 185.13, y = -730.53, z = 46.08, Opened = false, Treasure}, --15
- {x = 2654.32, y = 1425.1, z = 23.52, Opened = false, Treasure}, --16
- {x = 2563.98, y = 2587.49, z = 37.08, Opened = false, Treasure}, --17
- {x = 2949.65, y = 2741.14, z = 43.03, Opened = false, Treasure}, --18
- {x = 1910.55, y = 3283.843, z = 43.56, Opened = false, Treasure}, --19
- {x = 67.15, y = 3655.69, z = 38.67, Opened = false, Treasure}, --20
- {x = -2297.51, y = 3191.1, z = 31.81, Opened = false, Treasure}, --21
- {x = 170.62, y = -908.9, z = 29.69, Opened = false, Treasure}, --22
- {x = 677.86, y = 686.74, z = 129.46, Opened = false, Treasure}, --23
- {x = 5.48, y = -1386.95, z = 29.29, Opened = false, Treasure}, --24
- {x = 857.48, y = -948.71, z = 25.28, Opened = false, Treasure}, --25
- {x = 1665.19, y = 0.73, z = 165.12, Opened = false, Treasure}, --26
- {x = -90.29, y = -1010.4, z = 26.31, Opened = false, Treasure}, --27
- {x = 2520.47, y = 2621.87, z = 36.94, Opened = false, Treasure}, --28
- {x = 1201.26, y = 2656.5, z = 36.85, Opened = false, Treasure}, --29
- {x = -2349.48, y = 2815.32, z = 0.71, Opened = false, Treasure}, --30
- {x = 37.21, y = 6555.49, z = 30.45, Opened = false, Treasure}, --31
- {x = -927.89, y = 6148.93, z = 4.56, Opened = false, Treasure}, --32
- {x = -1280.2, y = 2553.37, z = 17.39, Opened = false, Treasure}, --33
- {x = -2472.78, y = 2305.78, z = 31.01, Opened = false, Treasure}, --34
- {x = -1663.54, y = -292.07, z = 50.88, Opened = false, Treasure}, --35
- {x = 1077.88, y = -750.55, z = 56.97, Opened = false, Treasure}, --36
- {x = -1428.16, y = -420.71, z = 35.36, Opened = false, Treasure}, --37
- {x = -2115.73, y = -316.28, z = 12.59, Opened = false, Treasure}, --38
- {x = -769.33, y = -931.08, z = 17.07, Opened = false, Treasure}, --39
- {x = -221.0, y = -1498.05, z = 30.61, Opened = false, Treasure}, --40
- {x = 244.14, y = -1273.74, z = 28.44, Opened = false, Treasure}, --41
- {x = 1789.34, y = -1541.54, z = 112.26, Opened = false, Treasure}, --42
- {x = 1282.99, y = -725.94, z = 63.49, Opened = false, Treasure}, --43
- }
- --Any item you want to be winnible by players
- Config.winnibleitems = {
- "diamond_ore",
- "bread"
- }
- --The object name
- Config.object = "xm_prop_x17_chest_closed"
- -- The spawn name of the vehicle that players can got from chests
- Config.winniblevehiclename = "cheburek"
- --Set it true if you want players to have chance to win a car
- Config.canwincar = true
- --The number of item when player got item from the chest
- Config.winitemamount = 25
- --Win chance for item. Now it's 1 to 15
- Config.winchance = 15 --Minimum 3
- --The item name what the player needs to have to open a chest
- Config.keyitem = "treasurekey"
- --If false then players can open the treasure chests without key item
- Config.needkey = false
- --How much time player need to wait to open a chest again (in minute)
- Config.wait = 2
- --How far would player see the text of the treasure chest (in coords)
- Config.distance = 3
- --How often should each treasure chest spawn again (in minutes) [You only need to edit this if you have Config.Deletetreasurechest on true]
- Config.TreasureRespawn = 30
- --Set it false if you don't want treasures to disappear when opened.
- Config.DeleteTreasurechest = true
- --What framework are you using? "oldESX" or "ESX" or "QBCore"
- Config.Framework = "ESX"
- --Notification types
- Config.Red = "error"
- Config.Green = "success"
- --Messages and text
- Config.text = "Treasure Chest [E]"
- Config.money = "Congratulations! You found a treasure chest and there was money in it!"
- Config.item = "Congratulations! You found a treasure chest and you found "
- Config.itemending = --[[Item name will be here in the notify]] " in it!"
- Config.carkey = "Congratulations! You have found a car key in the chest!"
- Config.nokeytext = "You need a key to open the treausre chest!"
- Config.youneedtowait = "Someone just opened a chest. You need to wait "
- Config.Reappered = "All opened crates are put back in place"
- --How player got the money. True = cash; false = bank
- Config.cash = true
- --How much the player got from the treasure chest if he got more money.
- Config.winbig = math.random(8000, 10000)
- -- How much the player got if he got less money from the chest
- Config.win = math.random(5000, 8000)
- --Discord messages
- Config.dcmessagemoney = " Opened an chest and he/she found money in it!"
- Config.dcmessageitem = " Opened an chest and he/she found items!"
- Config.dcmessagelessmoney = " Opened an chest and he/she found less money in it!"
- Config.dccarkey = " Opened an chest and he/she carkey in it!"
- --DE (Übersetzung von ZappisWelt#2205)
- --Nachrichten und Text
- -- Config.text = "Schatztruhe [E]"
- -- Config.money = "Herzlichen Glückwünsch! Du hast eine Schatztruhe gefunden und darin war Geld!"
- -- Config.item = "Herzlichen Glückwünsch! Du hast eine Schatztruhe gefunden und "
- -- Config.itemending = --[[Der Name des Artikels wird hier in der Benachrichtigung erscheinen]] " war darin!"
- -- Config.carkey = "Herzlichen Glückwünsch! Du hast einen Autoschlüssel in der Schatztruhe gefunden!"
- -- Config.nokeytext = "Du brauchst einen Schlüssel, um die Schatztruhe zu öffnen!"
- -- Config.youneedtowait = "Jemand anderes hat gerade eine Schatztruhe geöffnet. Du musst warten... "
- --Config.Reappered = "Alle geöffneten Kisten werden wieder an ihren Platz gestellt"
- --Discord-Nachrichten
- -- Config.dcmessagemoney = " hat eine Schatztruhe geöffnet und Geld darin gefunden!"
- -- Config.dcmessageitem = " hat eine Schatztruhe gefunden und Items darin gefunden!"
- -- Config.dcmessagelessmoney = " hat eine Schatztruhe geöffnet und Allmosen darin gefunden!"
- -- Config.dccarkey = " hat eine Schatztruhe geöffnet und ist nun darin eingesperrt!"
- --Notification trigger
- RegisterNetEvent("treasure_notify")
- AddEventHandler("treasure_notify", function(type, msg)
- --You can set your notification here (Some notification systems can already be found here just delete the two minus signs from the beginning)
- --exports['okokNotify']:Alert("Treasurechest", msg, 5000, type) --okok notify (PAID resource)
- --TriggerEvent("mosh_UI:Open", type, msg, "right", true) --Mosh UI / Notify (PAID resource)
- --exports['mythic_notify']:DoHudText(type, msg) --Mythic Notify (Free resource)
- --exports["skeexsNotify"]:TriggerNotification({ ['type'] = type, ['message'] = msg , Treasure}) --skeexsNotify (Free resource)
- --TriggerEvent('QBCore:Notify', msg, type) --Default QBCore notifcation (Free resource)
- TriggerEvent('esx:showNotification', msg) --Default ESX notification (Free resource)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement