Configuration

Configuration Overview
Config = {};

--- RECOMENDED TO LEAVE AS TRUE ---
Config.CheckForUpdates = true -- Check for updates on server start
Config.AutoImportSQL = true   -- Automatically import on server start

Config.SystemSettings = {
	Language = "en", -- en - English | fr - French | pt_br - Portuguese (Brazil) | es - Spanish | zh_tw - Traditional Chinese | kr - Korean
	Debug = false,
	theme = "gblue",      -- gblue | theme2 | theme3 | theme4 | theme5
	OpenMenuVia = "textui", -- target | textui | custom

	Currency = "$",
	DateFormat = "YYYY-MM-DD", -- Date format for displaying dates

	-- Collect All Settings (recommended: false)
	EnableCollectAll = false,        -- Enable Collect All button in the UI
	CollectAllPaymentType = "default", -- "society" = remove from society account | "default" = remove from bank's

	DisplayPromotionHint = false,     -- Display promotion hint in the UI
	ExpiredPenaltyTimer = 10000,     -- 10000 = 10 seconds Timer for expired penalty check in
	-- recommended to leave as true
	DeleteCollectedPaychecks = true, -- Delete collected paychecks from the database on server/script restart
};

-- TextUI settings
Config.Key = 38          -- 38 = [E] https://docs.fivem.net/docs/game-references/controls/#controls
Config.KeyName = "[E] "
Config.TextUI = "ox_lib" -- supported Notifications TextUi's -  "ox_lib" | "okok" | "esx" | "qbcore"
-- g-notifications package - https://groot-development.tebex.io/package/6838310
Config.Notify = "g-notifications" -- supported Notification's' - "g-notifications" | "ox_lib" | "esx" | "qbcore" | "okok"  | 17mov | standalone


-- This is is requested feature, if you want to use it then set this to true
-- If true, when a penalty duration is completed, the player’s data will not be deleted—only the duration and related fields will be reset.
-- If true, and the player is in the salary management system, then when they receive a paycheck, they will be required to approve it by their boss.
Config.RequireSalaryApproval = true

Config.PaycheckInterval = 7 * 60000; -- 7 minutes in milliseconds
Config.EnableSocietyPayouts = false; -- if true, players will receive their paycheck from society account
Config.GDutyV2 = {
	UseDutyV2 = false,
	scriptFolderName = "g-dutyV2"
};


-- Accumulation System
Config.Accumulation = {
	Enabled = false,
	Interval = 10000, -- How often to update accumulated time (in seconds)
	Threshold = 1,  -- In hours (1 hour = 3600 seconds)
}

Config.UnemployedJob = "unemployed";
Config.UnemployedJobMoneyType = "bank"; -- unemployed job money type 
Config.WelfareCheck = 50; -- Amount to give unemployed players as welfare check
-- If you use g-dutyV2
-- https://groot-development.tebex.io/package/6909932 -- 
Config.SalaryProgression = {
	police = {
		[0] = { -- grade
			base = 1000,
			offdutySalary = 100,
			progression = {
				[5] = 10, -- 5 hours = 10%  will increase salary by 10%
				[10] = 15, -- 10 hours = 15% increase
				[20] = 20 -- 20 hours = 20% increase
			}
		},
		[1] = {
			base = 1200,
			offdutySalary = 100,
			progression = {
				[5] = 3,
				[10] = 4,
				[20] = 6
			}
		},
		[2] = {
			base = 1400,
			offdutySalary = 100,
			progression = {
				[5] = 3,
				[10] = 4,
				[20] = 6
			}
		},
		[3] = {
			base = 1400,
			offdutySalary = 100,
			progression = {
				[1] = 10,
				[10] = 4,
				[20] = 6
			}
		}
	},
	 
	-- Add more jobs as needed
};


Config.PayCheckSettings = {
	Boss = {
		-- Access type: "location" (target/text UI) or "command" (/paycheckboss)
		OpenMenuType = "location", -- "location" | "command"
		Jobs = {
			['police'] = { -- job name
				permissions = { 3 },         -- Minimum grade(s) required
				coords = {
					vec4(441.54, -981.0, 30.69, 150.23) -- Location to access if using "location" type
				}
			},
			['ambulance'] = {
				permissions = { 3 },
				coords = {
					vec4(301.1719, -576.9401, 44.2762 - 0.5, 87.3763)
				}
			},
			-- Add more jobs as needed
		},

		-- Slash command details (only used if OpenMenuType is "command")
		Cmd = {
			cmdName = "paycheckboss",       -- Command to open boss menu
			help = "Open the paycheck boss menu", -- Command help text
		},
	},
	-- user
	User = {
		EnablePed = true,
		Ped = "a_f_y_business_02",
		coords = {
			vec4(243.6847, 226.2143, 106.2876, 159.2491),
		}
	}
}

Last updated