CS_AK

config.lua

Dec 14th, 2025 (edited)
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.52 KB | None | 0 0
  1. Config = Config or {}
  2.  
  3. -- >>>> To Configure your FRAMEWORK, bridge/your_framework! <<<<
  4.  
  5. Config.Settings = {
  6.   framework = "AUTO",
  7.   -- AUTO (automatically detects the supported framework)
  8.  
  9.   -- ESX - https://github.com/esx-framework/esx_core
  10.   -- QBCore - https://qbcore.net/download
  11.   -- Qbox - https://github.com/Qbox-project/qbx_core
  12.  
  13.   ["app"] = {
  14.     identifier = "treasure_hunt",
  15.     name = "Treasure Hunt",
  16.     description = "Find the hidden treasures using the photo.",
  17.     defaultApp = false,
  18.     price = 0,
  19.     size = 200000,
  20.     images = {},
  21.     icon = "nui://".. GetCurrentResourceName() .."/html/assets/images/icon.png",
  22.     developer = "Code Service",
  23.   },
  24.  
  25.   permissions = {"owner", "admin"}, -- Permissions to create, delete, clear leaderboard, or see blips of treasure locations (if enabled in Config.Settings.dev_mode)
  26.  
  27.   database_table_name = "treasure_hunt",
  28.  
  29.   images_path = { -- The Path to the images (items, vehicles)
  30.     item ="nui://inventory/web/dist/assets/items/",
  31.     vehicle = "nui://inventory/web/dist/assets/vehicles/",
  32.   },
  33.  
  34.   plate = {
  35.     prefix = "CS ", -- The fixed prefix at beginning of the plate, let this empty if you dont want a prefix
  36.     format = "AA999" -- The format of the plate e.g (AAA 9999) >> max recommended length = 8 (prefix and whitespaces included) <<
  37.   },
  38.  
  39.   dev_mode = {
  40.     ["blips"] = { -- Shows all treasure locations on the map! (if has permission)
  41.       enabled = true,
  42.       sprite = 568, -- The sprite of the Blip (https://docs.fivem.net/docs/game-references/blips/)
  43.       scale = 0.8, -- The scale of the blip
  44.       color = 3, -- The color of the blip (https://docs.fivem.net/docs/game-references/blips/#blip-colors)
  45.       alpha = 1.0, -- The alpha of the blip (transparency)
  46.       name = "Treasure",
  47.     }
  48.   },
  49.  
  50.   reset_treasure_after = 0.2, -- in minutes, i prefer every 60 minutes
  51.   treasure_regenerate_price = 10000, -- the price to regenerate the treasure manually (bank)
  52.   money_method = "bank", -- the account name from which the money will be debited
  53.   money_format = "${value}", -- The money format
  54.   date_locale = "en-US", -- de-DE, en-US, en-GB
  55.  
  56.   reward_settings = {
  57.     ["pickup"] = {
  58.       interact_distance = 2.0,
  59.  
  60.       ["object"] = {
  61.         enabled = true, -- Show specific object to pickup the reward ?
  62.         model = `tr_prop_tr_mil_crate_02`, -- The model for the object (https://forge.plebmasters.de/objects)
  63.       },
  64.  
  65.       ["marker"] = {
  66.         enabled = true, -- Show specific marker to pickup the reward ?
  67.         rotate = true, -- Rotate animation?
  68.         bounce = false, -- Bounce animation?
  69.         face_camera = false, -- Face Camera?
  70.         draw_distance = 20.0, -- The draw distance of the marker
  71.         type = 20, -- The type (style) of the marker (https://docs.fivem.net/docs/game-references/markers/)
  72.         scale = { -- The scale of the marker
  73.           x = 0.58,
  74.           z = 0.58,
  75.         },
  76.         rotation = { -- The default rotation of the marker
  77.           x = 180.0,
  78.           y = 0,
  79.           z = 0,
  80.         },
  81.         color = { -- The color of the marker
  82.           r = 255,
  83.           g = 255,
  84.           b = 255,
  85.           a = 100,
  86.         },
  87.         offset = { -- The offset of the marker (re-adjust the position)
  88.           x = 0,
  89.           y = 0,
  90.           z = 0.2,
  91.         }
  92.       }
  93.     },
  94.  
  95.     ["rewards"] = {
  96.       ["normal"] = {
  97.         rewards = {
  98.           {
  99.             type = "item", -- Every type can be configured in the "server/rewards.lua", you can also add custom types!
  100.             label = "Bread", -- The label of the reward
  101.             name = "bread", -- The item name
  102.             image = "bread.png", -- The image name of the reward
  103.             amount = {4, 10}, -- The amount (random) (if you want an fixed amount set both values to the same value)
  104.             chance = 50, -- The chance of the item (0-100)
  105.           },
  106.           {
  107.             type = "money", -- Every type can be configured in the "server/rewards.lua", you can also add custom types!
  108.             label = "Bundle of Cash", -- The label of the reward
  109.             account = "money", -- can be configured in your framework - default values [ESX] - money, bank, black_money [QBCore] - cash, bank, crypto
  110.             image = "money.png",
  111.             amount = {2500, 5000}, -- The amount (random) (if you want an fixed amount set both values to the same value)
  112.             chance = 40, -- The chance of the item (0-100)
  113.           },
  114.           {
  115.             type = "money", -- Every type can be configured in the "server/rewards.lua", you can also add custom types!
  116.             label = "Duffelbag of Money", -- The label of the reward
  117.             account = "money", -- can be configured in your framework - default values [ESX] - money, bank, black_money [QBCore] - cash, bank, crypto
  118.             image = "money_bag.png",
  119.             amount = {25000, 50000}, -- The amount (random) (if you want an fixed amount set both values to the same value)
  120.             chance = 30, -- The chance of the item (0-100)
  121.           },
  122.         }
  123.       },
  124.  
  125.       ["super"] = {
  126.         active_after_collects = 2, -- How many treasures needs to be collected to activate the super price for the next treasure?
  127.         rewards = {
  128.           {
  129.             type = "vehicle", -- Every type can be configured in the "server/rewards.lua", you can also add custom types!
  130.             label = "Grotti Furia", -- The label of the reward
  131.             image = "furia.png", -- The image name of the reward
  132.             vehicle_type = "car", -- The type of the vehicle (required for many garage systems, you can also configure it in the "server/rewards.lua")
  133.             model = "furia", -- The model name of the vehicle
  134.             chance = 10, -- The chance of the item (0-100)
  135.           },
  136.           {
  137.             type = "money", -- Every type can be configured in the "server/rewards.lua", you can also add custom types!
  138.             label = "Bundle of Cash", -- The label of the reward
  139.             account = "money", -- can be configured in your framework - default values [ESX] - money, bank, black_money [QBCore] - cash, bank, crypto
  140.             image = "money.png",
  141.             amount = {2500, 5000}, -- The amount (random) (if you want an fixed amount set both values to the same value)
  142.             chance = 40, -- The chance of the item (0-100)
  143.           },
  144.           {
  145.             type = "money", -- Every type can be configured in the "server/rewards.lua", you can also add custom types!
  146.             label = "Duffelbag of Money", -- The label of the reward
  147.             account = "money", -- can be configured in your framework - default values [ESX] - money, bank, black_money [QBCore] - cash, bank, crypto
  148.             image = "money_bag.png",
  149.             amount = {25000, 50000}, -- The amount (random) (if you want an fixed amount set both values to the same value)
  150.             chance = 40, -- The chance of the item (0-100)
  151.           },
  152.           {
  153.             type = "money", -- Every type can be configured in the "server/rewards.lua", you can also add custom types!
  154.             label = "Pile of Dirty Money", -- The label of the reward
  155.             account = "black_money", -- can be configured in your framework - default values [ESX] - money, bank, black_money [QBCore] - cash, bank, crypto
  156.             image = "black_money_pile.png",
  157.             amount = {8000, 12000}, -- The amount (random) (if you want an fixed amount set both values to the same value)
  158.             chance = 50, -- The chance of the item (0-100)
  159.           },
  160.         }
  161.       }
  162.     },
  163.   }
  164. }
Advertisement
Add Comment
Please, Sign In to add comment