Basic Stuff, Temp Prio, Identifiers, etc
Quality of life scripts for your FiveM server. Performance optimized resources that install in minutes, with free updates and support that actually answers.
lua
Config = Config or {}
-- Show extra info in the server console (keep off on a live server)
Config.Debug = false
-- Players without these identifiers cannot join
Config.RequiredIdentifiers = { 'license', 'discord' }
-- Identifier used to track players (must be in the list above)
Config.Identifier = 'discord'
-- Stop the default 'hardcap' resource so it doesn't kick players the queue lets in
Config.DisableHardCap = true
-- Makes players wait a few seconds before connecting, to stop connect-button spam
Config.AntiSpam = {
enabled = true,
time = 5 * 1000, -- milliseconds (up to 5s is added at random)
}
-- Seconds a player can take to finish loading in before their slot is freed
Config.Timeout = 300
-- Nobody can join for this long after a server restart (milliseconds)
Config.JoinDelay = 3 * 60 * 1000
-- Show the welcome card where players choose which role/job to play as
Config.ShowWelcomeCard = true
-- Seconds before the welcome card continues on its own
Config.AutoPlayTimeout = 30
-- true = add up the points of all the player's roles, false = only the first role counts
Config.AccumulateRolePoints = true
-- Extra points for players who crashed, so they get back in faster
Config.CrashPrio = {
enabled = true,
points = 50,
time = 5, -- minutes
}
-- Enable the 'queue' console commands (see documentation.md)
Config.ConsoleCommands = true
-- Buttons shown on the cards
Config.Links = {
rules = 'https://discord.gg/qxGPARNwNP',
store = 'https://discord.gg/qxGPARNwNP',
website = 'https://discord.gg/qxGPARNwNP',
discord = 'https://discord.gg/qxGPARNwNP',
}
-- Advanced: the defaults are fine for most servers
Config.Performance = {
tick_interval = 1000, -- how often the queue updates (milliseconds)
card_refresh = 5, -- how often each player's queue card refreshes (in ticks)
max_promotions_per_tick = 10, -- max players let in per tick
}