From d57218594fac36c8cacc8f5dc7f677e5b3cc5628 Mon Sep 17 00:00:00 2001 From: BerkieBb <82737367+BerkieBb@users.noreply.github.com> Date: Tue, 1 Mar 2022 19:41:37 +0100 Subject: [PATCH] feat(config): whitelist config and connectqueue config --- config.lua | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/config.lua b/config.lua index f304e81..f18ac41 100644 --- a/config.lua +++ b/config.lua @@ -3,11 +3,11 @@ QBConfig = {} QBConfig.MaxPlayers = GetConvarInt('sv_maxclients', 48) -- Gets max players from config file, default 48 QBConfig.DefaultSpawn = vector4(-1035.71, -2731.87, 12.86, 0.0) QBConfig.UpdateInterval = 5 -- how often to update player data in minutes -QBConfig.StatusInterval = 5000 -- how often to check hunger/thirst status in ms +QBConfig.StatusInterval = 5000 -- how often to check hunger/thirst status in milliseconds QBConfig.Money = {} -QBConfig.Money.MoneyTypes = { ['cash'] = 500, ['bank'] = 5000, ['crypto'] = 0 } -- ['type']=startamount - Add or remove money types for your server (for ex. ['blackmoney']=0), remember once added it will not be removed from the database! -QBConfig.Money.DontAllowMinus = { 'cash', 'crypto' } -- Money that is not allowed going in minus +QBConfig.Money.MoneyTypes = {['cash'] = 500, ['bank'] = 5000, ['crypto'] = 0} -- ['type'] = startamount - Add or remove money types for your server (for ex. ['blackmoney'] = 0), remember once added it will not be removed from the database! +QBConfig.Money.DontAllowMinus = {'cash', 'crypto'} -- Money that is not allowed going in minus QBConfig.Money.PayCheckTimeOut = 10 -- The time in minutes that it will give the paycheck QBConfig.Money.PayCheckSociety = false -- If true paycheck will come from the society account that the player is employed at, requires qb-bossmenu @@ -21,16 +21,20 @@ QBConfig.Player.Bloodtypes = { } QBConfig.Server = {} -- General server config -QBConfig.Server.closed = false -- Set server closed (no one can join except people with ace permission 'qbadmin.join') -QBConfig.Server.closedReason = "Server Closed" -- Reason message to display when people can't join the server -QBConfig.Server.uptime = 0 -- Time the server has been up. -QBConfig.Server.whitelist = false -- Enable or disable whitelist on the server -QBConfig.Server.pvp = true -- Enable or disable pvp on the server (Ability to shoot other players) -QBConfig.Server.discord = "" -- Discord invite link -QBConfig.Server.checkDuplicateLicense = true -- Check for duplicate rockstar license on join +QBConfig.Server.UseConnectQueue = true -- Use connectqueue as a queue for your server +QBConfig.Server.Closed = false -- Set server closed (no one can join except people with ace permission 'qbadmin.join') +QBConfig.Server.ClosedReason = "Server Closed" -- Reason message to display when people can't join the server +QBConfig.Server.Uptime = 0 -- Time the server has been up. +QBConfig.Server.Whitelist = false -- Enable or disable whitelist on the server +QBConfig.Server.WhitelistPermission = 'admin' -- Permission that's able to enter the server when the whitelist is on +QBConfig.Server.PVP = true -- Enable or disable pvp on the server (Ability to shoot other players) +QBConfig.Server.Discord = "" -- Discord invite link +QBConfig.Server.CheckDuplicateLicense = true -- Check for duplicate rockstar license on join QBConfig.Server.PermissionList = {} -- Permission list for old permission system QBConfig.Server.UseOldPermissionSystem = false -- Use old permissions system from the database -QBConfig.Server.AllPermissions = {'god',} -- Table of permissions which have access to everything +QBConfig.Server.AllPermissions = { -- Table of permissions which have access to everything for the new permissions system + 'god', +} QBConfig.Notify = {} @@ -64,4 +68,4 @@ QBConfig.Notify.VariantDefinitions = { classes = 'ambulance', icon = 'fas fa-ambulance' } -} \ No newline at end of file +}