161 lines
		
	
	
		
			No EOL
		
	
	
		
			5.7 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			161 lines
		
	
	
		
			No EOL
		
	
	
		
			5.7 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
| cfg = cfg or {}
 | |
| cfg.settings = cfg.settings or {}
 | |
| 
 | |
| 
 | |
| cfg.settings.ui_theme = {
 | |
|     primary_color = "rgb(255, 189, 89)" -- USE THESE COLOR FORMATS: ["#fefefe", "rgb(40, 180, 90)"]
 | |
| }
 | |
| -- Numbers can be 1 - 255
 | |
| cfg.settings.box_outline = {r = 255, g = 189, b = 89, a = 255}
 | |
| 
 | |
| cfg.settings.blip_theme = { --https://docs.fivem.net/docs/game-references/blips/#blip-colors
 | |
|     blip_color = 47, 
 | |
|     route_color = 47,
 | |
|     radius_color = 47,
 | |
| }
 | |
| 
 | |
| cfg.settings.reset_time = {
 | |
|     daily = "00:00", -- At Which Time the Daily's Reset [Example: 22:00] 10 PM
 | |
|     timezone_offset = "GMT", -- Reflects Table cfg.settings.timezone_offsets [Bottom of This Page]
 | |
| }
 | |
| 
 | |
| cfg.settings.currency = {
 | |
|     currency = "USD",  -- [USD, EUR, GBP]
 | |
| }
 | |
| 
 | |
| cfg.settings.popup = {
 | |
|     enabled = true, -- Turn to false to stop help popups
 | |
|     popup_pos = "bottom-middle",
 | |
|     enable_progress = true, -- Turn to false to stop progress popups
 | |
|     progress_pos = "right-middle",
 | |
| }
 | |
| 
 | |
| cfg.settings.blackout = {
 | |
|     isEnabled = true,                                     -- Enable or disable the global blackout event
 | |
|     repairBoxCount = {min = 10, max = 20},                -- Number of electrical boxes to fix as an electrical maintainer to repair power
 | |
|     autoRestoreTimeout = {min = 10, max = 20},            -- Time (in minutes) before blackout automatically ends
 | |
|     blackoutCooldown = {min = 60, max = 300},             -- Time (in minutes) between blackout events
 | |
|     maxBlackouts = {min = 1, max = 2},                    -- Amount of blackouts possible per restart
 | |
| 
 | |
|     notify = {                  -- Toggle notifications on or off (All messages in lang file)
 | |
|         eventStart = true,      -- ON Event start tell users to come to electrical plant for bonus money to help bring lights online
 | |
|         eventEnd = true,        -- Lights are back online and thank people for helping brining lights on
 | |
|         payoutBonus = true,     -- After every fix tell them they earned X amount extra for helping
 | |
|     },
 | |
| 
 | |
|     payout_bonus = {                                      -- Bonus money/experience fixing boxes during blackout (MONEY SCALES WITH LEVEL)
 | |
|         isEnabled = true,
 | |
|         money = {min = 25, max = 35},
 | |
|         experience = {min = 35, max = 50},
 | |
|     }
 | |
| }
 | |
| 
 | |
| 
 | |
| cfg.settings.minigames = {
 | |
|     connect_dots = {
 | |
|         color_theme = {
 | |
|             { name = "rust red", hex = "#8B2E25" },
 | |
|             { name = "steel blue", hex = "#4682B4" },
 | |
|             { name = "olive", hex = "#556B2F" },
 | |
|             { name = "copper", hex = "#B87333" },
 | |
|             { name = "slate", hex = "#708090" },
 | |
|             { name = "navy", hex = "#1E3F66" },
 | |
|             { name = "burgundy", hex = "#800020" },
 | |
|             { name = "forest", hex = "#228B22" },
 | |
|         },
 | |
|         time_requirement = { -- Time to complete puzzle for each color count
 | |
|             [2] = 7,    -- 2 Colors
 | |
|             [3] = 7,    -- 3 Colors and so on
 | |
|             [4] = 9,
 | |
|             [5] = 12,
 | |
|             [6] = 15,
 | |
|             [7] = 15,
 | |
|             [8] = 15,
 | |
|         }
 | |
|     }
 | |
| }
 | |
| 
 | |
| cfg.settings.defaults = {
 | |
|     prop_render = 100.0,
 | |
|     prop_delete_timer = 60, -- 60 Seconds for prop to fully delete
 | |
|     prop_default = "h4_prop_h4_fuse_box_01a", -- Missing prop model default
 | |
| }
 | |
| 
 | |
| cfg.settings.leaderboards = {
 | |
|     tables = {
 | |
|         ["player_experience"] = "Most Experience",
 | |
|         ["completed_challenges"] = "Completed challenges",
 | |
|     },
 | |
|     total_requests = 250, -- How many contestants to show on each leaderboard.
 | |
| }
 | |
| 
 | |
| 
 | |
| cfg.settings.timezone_offsets = {
 | |
|     -- Standard Time Zones
 | |
|     UTC = 0,                  -- Coordinated Universal Time
 | |
|     GMT = 0,                  -- Greenwich Mean Time
 | |
|     EST = -5 * 3600,          -- Eastern Standard Time
 | |
|     CST = -6 * 3600,          -- Central Standard Time
 | |
|     MST = -7 * 3600,          -- Mountain Standard Time
 | |
|     PST = -8 * 3600,          -- Pacific Standard Time
 | |
|     AKST = -9 * 3600,         -- Alaska Standard Time
 | |
|     HST = -10 * 3600,         -- Hawaii-Aleutian Standard Time
 | |
| 
 | |
|     -- Daylight Saving Time Zones
 | |
|     EDT = -4 * 3600,          -- Eastern Daylight Time
 | |
|     CDT = -5 * 3600,          -- Central Daylight Time
 | |
|     MDT = -6 * 3600,          -- Mountain Daylight Time
 | |
|     PDT = -7 * 3600,          -- Pacific Daylight Time
 | |
| 
 | |
|     -- European Time Zones
 | |
|     CET = 1 * 3600,           -- Central European Time
 | |
|     EET = 2 * 3600,           -- Eastern European Time
 | |
|     WET = 0,                  -- Western European Time
 | |
| 
 | |
|     -- Asian Time Zones
 | |
|     IST = 5.5 * 3600,         -- Indian Standard Time
 | |
|     CST_China = 8 * 3600,     -- China Standard Time
 | |
|     JST = 9 * 3600,           -- Japan Standard Time
 | |
|     KST = 9 * 3600,           -- Korea Standard Time
 | |
| 
 | |
|     -- Australian Time Zones
 | |
|     AEST = 10 * 3600,         -- Australian Eastern Standard Time
 | |
|     ACST = 9.5 * 3600,        -- Australian Central Standard Time
 | |
|     AWST = 8 * 3600,          -- Australian Western Standard Time
 | |
| 
 | |
|     -- Custom Example
 | |
|     CUSTOM = -3 * 3600,       -- Example for customization
 | |
| }
 | |
| 
 | |
| cfg.settings.menus = {
 | |
|     {
 | |
|         page = "overview",  -- ID (DONT EDIT)
 | |
|         label = lang?.translations?.nav_overview,
 | |
|         icon = "fas fa-home",
 | |
|         isActive = true,
 | |
|     },
 | |
|     {
 | |
|         page = "progress",  -- ID (DONT EDIT)
 | |
|         label = lang?.translations?.nav_progress,
 | |
|         icon = "fas fa-chart-line",
 | |
|         isActive = false,
 | |
|     },
 | |
|     {
 | |
|         page = "jobs",  -- ID (DONT EDIT)
 | |
|         label = lang?.translations?.nav_jobs,
 | |
|         icon = "fas fa-hard-hat",
 | |
|         isActive = false,
 | |
|     },
 | |
|     {
 | |
|         page = "challenges",  -- ID (DONT EDIT)
 | |
|         label = lang?.translations?.nav_challenges,
 | |
|         icon = "fas fa-tasks",
 | |
|         isActive = false,
 | |
|     },
 | |
|     {
 | |
|         page = "leaderboards",  -- ID (DONT EDIT)
 | |
|         label = lang?.translations?.nav_leaderboard,
 | |
|         icon = "fas fa-trophy",
 | |
|         isActive = false,
 | |
|     },
 | |
| } | 
