Copy Config = { }
-- _____ _____ _ _ ______ _____ _____ _ _______ ___ _____ _____ _____ _ _
-- / __ \ _ | \ | || ___|_ _| __ \ | | | ___ \/ _ \_ _|_ _| _ | \ | |
-- | / \/ | | | \| || |_ | | | | \/ | | | |_/ / /_\ \| | | | | | | | \| |
-- | | | | | | . ` || _| | | | | __| | | | /| _ || | | | | | | | . ` |
-- | \__/\ \_/ / |\ || | _| |_| |_\ \ |_| | |\ \| | | || | _| |_\ \_/ / |\ |
-- \____/\___/\_| \_/\_| \___/ \____/\___/\_| \_\_| |_/\_/ \___/ \___/\_| \_/
Config.Framework = 'esx' -- Options: 'esx', 'qbcore'
-- Performance Mode Setting
Config.LowPerformanceMode = false -- Disables UI animations if true
-- Menu Spam Prevention Settings
Config.SpamCheck = false -- Enables spam check
Config.SpamDuration = 5 -- The maximum time to open the menu and it will count as spam
Config.SpamCount = 2 -- Number of allowed menu toggles before cooldown
Config.Cooldown = 10 -- Cooldown duration in seconds after spam limit is reached
-- Enable or disable the option to open the map with a shortcut key without going through the Pause Menu
Config.MinimapKey = 'M' -- set it to false to disable
-- Key Bindings
Config.MenuOpenKey = 'ESCAPE' -- Key to open the menu; default 'ESCAPE'. If you use ESCAPE the default GTA settings menu will be replaced
-- Commands and Keys Configuration
Config.CommandsKeys = {
Commands = { -- Command definitions
{ command = 'help', description = 'Show Help Menu' },
{ command = 'revive', description = 'Revives a player' }
},
Keys = { -- Key bindings for actions
{ key = 'F5', description = 'Open Menu (Default)' },
{ key = 'F5', description = 'Open Menu (Default)' }
}
}
-- Announcements Configuration
Config.Announces = {
{ title = 'Server Update 11/10/2024', date = '11/10/2024', text = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Eget nulla facilisi etiam dignissim diam.' },
{ title = 'Server Maintenance 11/11/2024', date = '11/11/2024', text = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Eget nulla facilisi etiam dignissim diam.' }
}
-- Scoreboard Settings
Config.Scoreboard = {
Jobs = { -- Job groups displayed on the scoreboard
{ Label = 'Police', Jobs = { 'police', 'lspd', 'lssd', 'fbi', 'dea' } },
{ Label = 'Medic', Jobs = { 'ambulance', 'medic', 'paramedic', 'doctor' } },
{ Label = 'Mechanic', Jobs = { 'mechanic', 'car' } },
{ Label = 'Taxi', Jobs = { 'taxi' } }
},
Heists = { -- Heist information for display
{ Name = 'Pacific Heist', MinJob = 7, JobCheck = 'Police' }, -- In the JobCheck =, remember to put what you have placed above in the Label =
{ Name = 'Fleeca Heist', MinJob = 1, JobCheck = 'Police' },
{ Name = 'Example Heist 1', MinJob = 2, JobCheck = 'Police' },
{ Name = 'Example Heist 2', MinJob = 1, JobCheck = 'Police' },
{ Name = 'Example Heist 3', MinJob = 5, JobCheck = 'Police' }
}
}
Config.Links = { -- The links for the buttons that lead to the social media platforms
Youtube = 'https://codeforge.tebex.io/',
Discord = 'https://codeforge.tebex.io/',
Twitter = 'https://codeforge.tebex.io/'
}
Config.Functions = {
-- Report button action
ExportReport = function()
ExecuteCommand('report')
end,
-- Notification method
Notification = function(text)
if Config.Framework == 'esx' then
ESX.ShowNotification(text) -- For ESX framework
elseif Config.Framework == 'qbcore' then
QBCore.Functions.Notify(text) -- For QBCore framework
end
end
}
Config.Translation = { -- Translate notifications
cooldown = 'You are on cooldown right now!'
}
-- UI Color and Translations
Config.UI = {
color = '#ff0451', -- UI color code
secondColor = 'rgba(255, 4, 81, 0.5)',
thirdColor = 'rgba(255, 4, 81, 0.8)',
fourthColor = 'rgba(255, 4, 81, 0.3)',
translation = {
bgtext = 'Pause Menu',
logo1 = 'Logo',
logo2 = 'Server',
scoreboard1 = 'sc<em>o</em>re',
scoreboard2 = 'b<em>o</em>ard',
scoreboard3 = 'This is the servers Scoreboard. Youll be able to see the online players and some additional information, such as available heists.',
hesits1 = 'Available Heists',
idtext = 'Your Id',
pingtext = 'Your Ping',
jobtext = 'Your Job',
moneytext = 'Money in Cash',
banktext = 'Money in Bank',
ann1 = 'se<em>r</em>ver',
ann2 = 'ann<em>o</em>unce',
ann3 = 'Welcome to the Server Announcement Board. Here the STAFF will post many interesting things for you, such as new events, patches, bug fixes, or various other useful information. Remember to stay tuned.',
report1 = 's<em>e</em>nd a',
report2 = 're<em>p</em>ort',
report = 'Open',
keys1 = 'import<em>a</em>nt',
keys2 = 'k<em>e</em>ys',
keys3 = 'import<em>a</em>nt',
keys4 = 'k<em>e</em>ys',
keys = 'Open',
map1 = 'Your <img src="assets/svgs/arrow.svg" alt="Arrow"/>',
map2 = 'M<em>a</em>p',
map = 'Open',
settings1 = 'You<em>r</em>',
settings2 = 'S<em>e</em>ttings',
settings = 'Open',
footer = 'If you have any <span>"Problems or Questions"</span> open a <span>Ticket</span> on the Server\'s Discord.',
exitgame = 'Exit Game'
}
}