Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = Config or {}
- -- >>>> To Configure your FRAMEWORK, bridge/your_framework! <<<<
- Config.Settings = {
- framework = "AUTO",
- -- AUTO (automatically detects the supported framework)
- -- ESX - https://github.com/esx-framework/esx_core
- -- QBCore - https://qbcore.net/download
- -- Qbox - https://github.com/Qbox-project/qbx_core
- ["app"] = {
- identifier = "treasure_hunt",
- name = "Treasure Hunt",
- description = "Find the hidden treasures using the photo.",
- defaultApp = false,
- price = 0,
- size = 200000,
- images = {},
- icon = "nui://".. GetCurrentResourceName() .."/html/assets/images/icon.png",
- developer = "Code Service",
- },
- permissions = {"owner", "admin"}, -- Permissions to create, delete, clear leaderboard, or see blips of treasure locations (if enabled in Config.Settings.dev_mode)
- database_table_name = "treasure_hunt",
- images_path = { -- The Path to the images (items, vehicles)
- item ="nui://inventory/web/dist/assets/items/",
- vehicle = "nui://inventory/web/dist/assets/vehicles/",
- },
- plate = {
- prefix = "CS ", -- The fixed prefix at beginning of the plate, let this empty if you dont want a prefix
- format = "AA999" -- The format of the plate e.g (AAA 9999) >> max recommended length = 8 (prefix and whitespaces included) <<
- },
- dev_mode = {
- ["blips"] = { -- Shows all treasure locations on the map! (if has permission)
- enabled = true,
- sprite = 568, -- The sprite of the Blip (https://docs.fivem.net/docs/game-references/blips/)
- scale = 0.8, -- The scale of the blip
- color = 3, -- The color of the blip (https://docs.fivem.net/docs/game-references/blips/#blip-colors)
- alpha = 1.0, -- The alpha of the blip (transparency)
- name = "Treasure",
- }
- },
- reset_treasure_after = 0.2, -- in minutes, i prefer every 60 minutes
- treasure_regenerate_price = 10000, -- the price to regenerate the treasure manually (bank)
- money_method = "bank", -- the account name from which the money will be debited
- money_format = "${value}", -- The money format
- date_locale = "en-US", -- de-DE, en-US, en-GB
- reward_settings = {
- ["pickup"] = {
- interact_distance = 2.0,
- ["object"] = {
- enabled = true, -- Show specific object to pickup the reward ?
- model = `tr_prop_tr_mil_crate_02`, -- The model for the object (https://forge.plebmasters.de/objects)
- },
- ["marker"] = {
- enabled = true, -- Show specific marker to pickup the reward ?
- rotate = true, -- Rotate animation?
- bounce = false, -- Bounce animation?
- face_camera = false, -- Face Camera?
- draw_distance = 20.0, -- The draw distance of the marker
- type = 20, -- The type (style) of the marker (https://docs.fivem.net/docs/game-references/markers/)
- scale = { -- The scale of the marker
- x = 0.58,
- z = 0.58,
- },
- rotation = { -- The default rotation of the marker
- x = 180.0,
- y = 0,
- z = 0,
- },
- color = { -- The color of the marker
- r = 255,
- g = 255,
- b = 255,
- a = 100,
- },
- offset = { -- The offset of the marker (re-adjust the position)
- x = 0,
- y = 0,
- z = 0.2,
- }
- }
- },
- ["rewards"] = {
- ["normal"] = {
- rewards = {
- {
- type = "item", -- Every type can be configured in the "server/rewards.lua", you can also add custom types!
- label = "Bread", -- The label of the reward
- name = "bread", -- The item name
- image = "bread.png", -- The image name of the reward
- amount = {4, 10}, -- The amount (random) (if you want an fixed amount set both values to the same value)
- chance = 50, -- The chance of the item (0-100)
- },
- {
- type = "money", -- Every type can be configured in the "server/rewards.lua", you can also add custom types!
- label = "Bundle of Cash", -- The label of the reward
- account = "money", -- can be configured in your framework - default values [ESX] - money, bank, black_money [QBCore] - cash, bank, crypto
- image = "money.png",
- amount = {2500, 5000}, -- The amount (random) (if you want an fixed amount set both values to the same value)
- chance = 40, -- The chance of the item (0-100)
- },
- {
- type = "money", -- Every type can be configured in the "server/rewards.lua", you can also add custom types!
- label = "Duffelbag of Money", -- The label of the reward
- account = "money", -- can be configured in your framework - default values [ESX] - money, bank, black_money [QBCore] - cash, bank, crypto
- image = "money_bag.png",
- amount = {25000, 50000}, -- The amount (random) (if you want an fixed amount set both values to the same value)
- chance = 30, -- The chance of the item (0-100)
- },
- }
- },
- ["super"] = {
- active_after_collects = 2, -- How many treasures needs to be collected to activate the super price for the next treasure?
- rewards = {
- {
- type = "vehicle", -- Every type can be configured in the "server/rewards.lua", you can also add custom types!
- label = "Grotti Furia", -- The label of the reward
- image = "furia.png", -- The image name of the reward
- vehicle_type = "car", -- The type of the vehicle (required for many garage systems, you can also configure it in the "server/rewards.lua")
- model = "furia", -- The model name of the vehicle
- chance = 10, -- The chance of the item (0-100)
- },
- {
- type = "money", -- Every type can be configured in the "server/rewards.lua", you can also add custom types!
- label = "Bundle of Cash", -- The label of the reward
- account = "money", -- can be configured in your framework - default values [ESX] - money, bank, black_money [QBCore] - cash, bank, crypto
- image = "money.png",
- amount = {2500, 5000}, -- The amount (random) (if you want an fixed amount set both values to the same value)
- chance = 40, -- The chance of the item (0-100)
- },
- {
- type = "money", -- Every type can be configured in the "server/rewards.lua", you can also add custom types!
- label = "Duffelbag of Money", -- The label of the reward
- account = "money", -- can be configured in your framework - default values [ESX] - money, bank, black_money [QBCore] - cash, bank, crypto
- image = "money_bag.png",
- amount = {25000, 50000}, -- The amount (random) (if you want an fixed amount set both values to the same value)
- chance = 40, -- The chance of the item (0-100)
- },
- {
- type = "money", -- Every type can be configured in the "server/rewards.lua", you can also add custom types!
- label = "Pile of Dirty Money", -- The label of the reward
- account = "black_money", -- can be configured in your framework - default values [ESX] - money, bank, black_money [QBCore] - cash, bank, crypto
- image = "black_money_pile.png",
- amount = {8000, 12000}, -- The amount (random) (if you want an fixed amount set both values to the same value)
- chance = 50, -- The chance of the item (0-100)
- },
- }
- }
- },
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment