Advertisement
Guest User

Kolopsel's Config

a guest
Dec 14th, 2018
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.77 KB | None | 0 0
  1. bWhitelist.Config = {} local config = bWhitelist.Config
  2. --[[
  3.  
  4.  
  5.     ██╗    ██╗ █████╗ ██████╗ ███╗   ██╗██╗███╗   ██╗ ██████╗
  6.     ██║    ██║██╔══██╗██╔══██╗████╗  ██║██║████╗  ██║██╔════╝
  7.     ██║ █╗ ██║███████║██████╔╝██╔██╗ ██║██║██╔██╗ ██║██║  ███╗
  8.     ██║███╗██║██╔══██║██╔══██╗██║╚██╗██║██║██║╚██╗██║██║   ██║
  9.     ╚███╔███╔╝██║  ██║██║  ██║██║ ╚████║██║██║ ╚████║╚██████╔╝
  10.      ╚══╝╚══╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═══╝╚═╝╚═╝  ╚═══╝ ╚═════╝
  11.  
  12.     If you are using a leak of bWhitelist, before you even bother to configure it, I warn you that the leak WILL NOT work.
  13.  
  14.     If you are willing to take the risk, you may be causing yourself a danger. SO DON'T DO IT.
  15.  
  16.     You can purchase the script on ScriptFodder.
  17.  
  18.     ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  19.  
  20.     Si tu utilises un leak de bWhitelist, avant que tu te fasses chier à le configurer, je te préviens que ce leak NE MARCHERA PAS.
  21.  
  22.     Si tu tiens à prendre le risque, tu te poses un danger inutile. ALORS NE LE FAIS PAS.
  23.  
  24.     Tu peux acheter ce script sur ScriptFodder.
  25.  
  26.     =================================================================================================================================================================
  27.  
  28.     ██████╗ ██╗    ██╗██╗  ██╗██╗████████╗███████╗██╗     ██╗███████╗████████╗     ██████╗ ██████╗ ███╗   ██╗███████╗██╗ ██████╗
  29.     ██╔══██╗██║    ██║██║  ██║██║╚══██╔══╝██╔════╝██║     ██║██╔════╝╚══██╔══╝    ██╔════╝██╔═══██╗████╗  ██║██╔════╝██║██╔════╝
  30.     ██████╔╝██║ █╗ ██║███████║██║   ██║   █████╗  ██║     ██║███████╗   ██║       ██║     ██║   ██║██╔██╗ ██║█████╗  ██║██║  ███╗
  31.     ██╔══██╗██║███╗██║██╔══██║██║   ██║   ██╔══╝  ██║     ██║╚════██║   ██║       ██║     ██║   ██║██║╚██╗██║██╔══╝  ██║██║   ██║
  32.     ██████╔╝╚███╔███╔╝██║  ██║██║   ██║   ███████╗███████╗██║███████║   ██║       ╚██████╗╚██████╔╝██║ ╚████║██║     ██║╚██████╔╝
  33.     ╚═════╝  ╚══╝╚══╝ ╚═╝  ╚═╝╚═╝   ╚═╝   ╚══════╝╚══════╝╚═╝╚══════╝   ╚═╝        ╚═════╝ ╚═════╝ ╚═╝  ╚═══╝╚═╝     ╚═╝ ╚═════╝
  34.  
  35.     Please note that there is quite a lot of profanity and insults in this config, mostly because many people can't FUCKING READ
  36.     However, if you can read and you have common sense, we're best bros so you can just ignore the profanity.
  37.     It is also present for comedic purposes, because configuring is boring as fuck.
  38.  
  39.     WARNING: Are you retarded? Then this might be more difficult for you! The config is very simple and I provide instructions,
  40.              examples, templates and more but some people still can't figure it out. If that's you, read it again and PLEASE
  41.              don't make a ticket. We have more important things to attend to and configuration of addons is NEVER the developer's
  42.              responsibility.
  43.  
  44.     WARNING: You might need to know English to configure this addon! Wow, surprise surprise, English is a very popular language!
  45.              Maybe you should learn it if you don't know it. Haha, let's all keep laughing at how France is the least English
  46.              speaking country in Europe.
  47.  
  48.     WARNING: Use a fucking syntax text editor! Are you using Notepad? Fuck off! Download Notepad++, Sublime Text or Atom.io.
  49.  
  50.     ███╗   ███╗██╗   ██╗███████╗ ██████╗ ██╗
  51.     ████╗ ████║╚██╗ ██╔╝██╔════╝██╔═══██╗██║
  52.     ██╔████╔██║ ╚████╔╝ ███████╗██║   ██║██║
  53.     ██║╚██╔╝██║  ╚██╔╝  ╚════██║██║▄▄ ██║██║
  54.     ██║ ╚═╝ ██║   ██║   ███████║╚██████╔╝███████╗
  55.     ╚═╝     ╚═╝   ╚═╝   ╚══════╝ ╚══▀▀═╝ ╚══════╝
  56.  
  57.     Looking for the MySQL config? Go to bwhitelist_mysql_config.lua.
  58.  
  59.          __
  60.         / /  __ _ _ __   __ _ _   _  __ _  __ _  ___
  61.        / /  / _` | '_ \ / _` | | | |/ _` |/ _` |/ _ \
  62.       / /__| (_| | | | | (_| | |_| | (_| | (_| |  __/
  63.       \____/\__,_|_| |_|\__, |\__,_|\__,_|\__, |\___|
  64.                         |___/             |___/
  65.  
  66.     bWhitelist currently supports a plethora of languages.
  67.  
  68.     If you'd like to contribute to the translation of bWhitelist, please contact me.
  69.     Understand however that you need to be FLUENT in English AND the other language(s).
  70.     A chain is only as strong as its weakest link!
  71.  
  72.     EXAMPLES:
  73.  
  74.     config.DefaultLanguage = "English"
  75.     config.DefaultLanguage = "French"
  76.  
  77.     Change the language below. If you're an idiot and you spell it wrong or something
  78.     it will default to English.
  79.  
  80. ]] config.DefaultLanguage = "English" --[[
  81.  
  82.                          ___                    _ _   _           _
  83.       /\/\   __ ___  __ / _ \___ _ __ _ __ ___ (_) |_| |_ ___  __| |
  84.      /    \ / _` \ \/ // /_)/ _ \ '__| '_ ` _ \| | __| __/ _ \/ _` |
  85.     / /\/\ \ (_| |>  </ ___/  __/ |  | | | | | | | |_| ||  __/ (_| |
  86.     \/    \/\__,_/_/\_\/    \___|_|  |_| |_| |_|_|\__|\__\___|\__,_|
  87.  
  88.     This setting is a list of SteamIDs, SteamID64s and usergroups that
  89.     have maximum permissions to bWhitelist.
  90.  
  91.     FUCKING READ THIS SHIT OKAY??
  92.  
  93.     If you have someone in MaxPermitted (this is common sense btw, you retard)
  94.     then you don't need to put them in the next setting, Permissions. Why?
  95.     Because as said above, THEY HAVE MAXIMUM FUCKING PERMISSIONS
  96.  
  97.     By maximum fucking permissions I mean they can wipe your whole whitelist,
  98.     disable all whitelists, enable all whitelists, etc.
  99.  
  100.     In the table (or list for you simpletons) you will add SteamIDs, SteamID64s and usergroups.
  101.  
  102.     A SteamID looks like this:
  103.  
  104.     STEAM_0:1:40314158
  105.  
  106.     A SteamID64 looks like this:
  107.  
  108.     76561198040894045
  109.  
  110.     and (you should know this as a server owner or "developer" (btw, stop calling yourself a fucking developer,
  111.     I'm a developer, you're a configurer unless you can actually CODE Lua.)) a usergroup is whatever you want it
  112.     to be.
  113.  
  114.     Here's a few examples of MaxPermitted:
  115.  
  116.     config.MaxPermitted = {"STEAM_0:1:40314158"}
  117.  
  118.     config.MaxPermitted = {"76561198074425791","STEAM_0:1:40314158"}
  119.  
  120.     config.MaxPermitted = {"76561198074425791","STEAM_0:1:40314158","superadmin"}
  121.  
  122.     config.MaxPermitted = {"superadmin"}
  123.  
  124.     Do you get it now? A table is a list? Every item is seperated by commas? Good? Okay.
  125.  
  126. ]] config.MaxPermitted = {"Founder"} --[[
  127.  
  128.      __  __            _____                    _ _   _           _ _____  _           _     _   __          ___     _ _       _ _     _
  129.     |  \/  |          |  __ \                  (_) | | |         | |  __ \(_)         | |   | |  \ \        / / |   (_) |     | (_)   | |
  130.     | \  / | __ ___  _| |__) |__ _ __ _ __ ___  _| |_| |_ ___  __| | |  | |_ ___  __ _| |__ | | __\ \  /\  / /| |__  _| |_ ___| |_ ___| |_ ___
  131.     | |\/| |/ _` \ \/ /  ___/ _ \ '__| '_ ` _ \| | __| __/ _ \/ _` | |  | | / __|/ _` | '_ \| |/ _ \ \/  \/ / | '_ \| | __/ _ \ | / __| __/ __|
  132.     | |  | | (_| |>  <| |  |  __/ |  | | | | | | | |_| ||  __/ (_| | |__| | \__ \ (_| | |_) | |  __/\  /\  /  | | | | | ||  __/ | \__ \ |_\__ \
  133.     |_|  |_|\__,_/_/\_\_|   \___|_|  |_| |_| |_|_|\__|\__\___|\__,_|_____/|_|___/\__,_|_.__/|_|\___| \/  \/   |_| |_|_|\__\___|_|_|___/\__|___/
  134.  
  135.     If this is set to true, then people who are not MaxPermitted (read above) won't be able to disable or enable whitelists.
  136.     If this is set to false, the opposite will apply.
  137.  
  138.     Examples:
  139.  
  140.     config.MaxPermittedDisableWhitelists = true
  141.     config.MaxPermittedDisableWhitelists = false
  142.  
  143. ]] config.MaxPermittedDisableWhitelists = true --[[
  144.  
  145.                          ___                    _ _   _           _ __ _    _      __    __ _     _ _       _ _     _
  146.       /\/\   __ ___  __ / _ \___ _ __ _ __ ___ (_) |_| |_ ___  __| / _\ | _(_)_ __/ / /\ \ \ |__ (_) |_ ___| (_)___| |_ ___
  147.      /    \ / _` \ \/ // /_)/ _ \ '__| '_ ` _ \| | __| __/ _ \/ _` \ \| |/ / | '_ \ \/  \/ / '_ \| | __/ _ \ | / __| __/ __|
  148.     / /\/\ \ (_| |>  </ ___/  __/ |  | | | | | | | |_| ||  __/ (_| |\ \   <| | |_) \  /\  /| | | | | ||  __/ | \__ \ |_\__ \
  149.     \/    \/\__,_/_/\_\/    \___|_|  |_| |_| |_|_|\__|\__\___|\__,_\__/_|\_\_| .__/ \/  \/ |_| |_|_|\__\___|_|_|___/\__|___/
  150.                                                                              |_|
  151.  
  152.     Woah there, isn't that a bit of a mouthful? Don't worry, I can't read that ASCII art, either! It says "MaxPermittedSkipWhitelists".
  153.  
  154.     Anyway, this is either true or false. If it's true, when someone in MaxPermitted (above) tries to join a whitelisted job, they'll
  155.     be let through regardless of whether they're actually whitelisted or not.
  156.  
  157.     If it's false, then if they try to join a whitelisted job, they'll go through the standard whitelist check everyone goes through.
  158.  
  159.     Here's two examples for you dumbasses:
  160.  
  161.     config.MaxPermittedSkipWhitelists = true
  162.  
  163.     config.MaxPermittedSkipWhitelists = false
  164.  
  165. ]] config.MaxPermittedSkipWhitelists = false --[[
  166.  
  167.        ___                    _         _
  168.       / _ \___ _ __ _ __ ___ (_)___ ___(_) ___  _ __  ___
  169.      / /_)/ _ \ '__| '_ ` _ \| / __/ __| |/ _ \| '_ \/ __|
  170.     / ___/  __/ |  | | | | | | \__ \__ \ | (_) | | | \__ \
  171.     \/    \___|_|  |_| |_| |_|_|___/___/_|\___/|_| |_|___/
  172.  
  173.     Uh-oh, this is gonna generate a lot of tickets I think!
  174.     Oh yeah, let me just remind you: don't make tickets for
  175.     config support. It says the same thing way up top.
  176.  
  177.     Anyway, Permissions is how people will be authenticated to
  178.     edit whitelists & open the menu and shit.
  179.  
  180.     It is a table (or, again, a list) but it's a little different this
  181.     time. This time, it has a "key"! I won't go into further detail
  182.     but you'll see what I mean in the examples.
  183.  
  184.     The key can be a SteamID, SteamID64, a usergroup or a TEAM_ variable.
  185.     The "value" (what the key "translates" into) will be another table
  186.     containing TEAM_ variables.
  187.  
  188.     If you want someone to have permission to change the whitelists for any job,
  189.     but not be MaxPermitted, use an asterisk (*) like this:
  190.  
  191.     config.Permissions = {
  192.  
  193.         ["STEAM_0:1:40314158"] = {
  194.  
  195.             "*",
  196.  
  197.         },
  198.  
  199.     }
  200.  
  201.     Here's some examples:
  202.  
  203.     To allow STEAM_0:1:40314158 to edit the whitelist of the team "Stupid Cuntfuck",
  204.     we can do it like this:
  205.  
  206.     config.Permissions = {
  207.  
  208.         ["STEAM_0:1:40314158"] = {
  209.  
  210.             TEAM_STUPIDCUNTFUCK,
  211.  
  212.         },
  213.  
  214.     }
  215.  
  216.     To allow both STEAM_0:1:40314158 and 76561198074425791 to edit the whitelist of the team
  217.     "Stupid Cuntfuck" we can do it like this:
  218.  
  219.     config.Permissions = {
  220.  
  221.         ["STEAM_0:1:40314158"] = {
  222.  
  223.             TEAM_STUPIDCUNTFUCK,
  224.  
  225.         },
  226.  
  227.         ["76561198074425791"] = {
  228.  
  229.             TEAM_STUPIDCUNTFUCK,
  230.  
  231.         },
  232.  
  233.     }
  234.  
  235.     To go even further and add a usergroup, we can do:
  236.  
  237.     config.Permissions = {
  238.  
  239.         ["STEAM_0:1:40314158"] = {
  240.  
  241.             TEAM_STUPIDCUNTFUCK,
  242.  
  243.         },
  244.  
  245.         ["76561198074425791"] = {
  246.  
  247.             TEAM_STUPIDCUNTFUCK,
  248.  
  249.         },
  250.  
  251.         ["moderator"] = {
  252.  
  253.             TEAM_STUPIDCUNTFUCK,
  254.  
  255.         },
  256.  
  257.     }
  258.  
  259.     To go EVEN FURTHER and allow "Stupid Cuntfuck Commander" to edit "Stupid Cuntfuck" we can do:
  260.  
  261.     config.Permissions = {
  262.  
  263.         ["STEAM_0:1:40314158"] = {
  264.  
  265.             TEAM_STUPIDCUNTFUCK,
  266.  
  267.         },
  268.  
  269.         ["76561198074425791"] = {
  270.  
  271.             TEAM_STUPIDCUNTFUCK,
  272.  
  273.         },
  274.  
  275.         ["moderator"] = {
  276.  
  277.             TEAM_STUPIDCUNTFUCK,
  278.  
  279.         },
  280.  
  281.         [TEAM_STUPIDCUNTFUCK_COMMANDER] = {
  282.  
  283.             TEAM_STUPIDCUNTFUCK,
  284.  
  285.         },
  286.  
  287.         [TEAM_STUPIDCUNTFUCK_COMMANDER] = {
  288.  
  289.             "*", -- this will give this job permission to edit the whitelist of any job on the server
  290.  
  291.         },
  292.  
  293.     }
  294.  
  295.     Common errors:
  296.  
  297.         "table index is nil": this means that your TEAM_ variable is spelt wrong or simply doesn't exist
  298.  
  299.     Get it now? Great! Now continue below:
  300.  
  301. ]] config.Permissions = {
  302.  
  303.         [TEAM_BALLAS_OG] = {
  304.  
  305.             TEAM_BALLAS,
  306.  
  307.         },
  308.  
  309.         [TEAM_GS_BIGSMOKE] = {
  310.  
  311.             TEAM_GS,
  312.  
  313.         },
  314.        
  315.         [TEAM_OC_SMITH] = {
  316.  
  317.             TEAM_OC,
  318.  
  319.         },
  320.        
  321.         [TEAM_POLICE_CHIEF] = {
  322.  
  323.             TEAM_POLICE,
  324.  
  325.         },
  326.  
  327. } --[[
  328.  
  329.        ___ _           _     ___                                          _
  330.       / __\ |__   __ _| |_  / __\___  _ __ ___  _ __ ___   __ _ _ __   __| |
  331.      / /  | '_ \ / _` | __|/ /  / _ \| '_ ` _ \| '_ ` _ \ / _` | '_ \ / _` |
  332.     / /___| | | | (_| | |_/ /__| (_) | | | | | | | | | | | (_| | | | | (_| |
  333.     \____/|_| |_|\__,_|\__\____/\___/|_| |_| |_|_| |_| |_|\__,_|_| |_|\__,_|
  334.  
  335.     This is pretty obvious but if you're retarded I'll give you the run down.
  336.     This is what the players will type in chat to open the menu.
  337.  
  338.     Examples:
  339.  
  340.     config.ChatCommand = "!bwhitelist"
  341.  
  342.     config.ChatCommand = "!whitelist"
  343.  
  344.     config.ChatCommand = "/bwhitelist"
  345.  
  346.     config.ChatCommand = "/whitelist"
  347.  
  348. ]] config.ChatCommand = "!bwhitelist" --[[
  349.  
  350.        _   _ _                ___                      _        ___                                          _
  351.       /_\ | | | _____      __/ __\___  _ __  ___  ___ | | ___  / __\___  _ __ ___  _ __ ___   __ _ _ __   __| |
  352.      //_\\| | |/ _ \ \ /\ / / /  / _ \| '_ \/ __|/ _ \| |/ _ \/ /  / _ \| '_ ` _ \| '_ ` _ \ / _` | '_ \ / _` |
  353.     /  _  \ | | (_) \ V  V / /__| (_) | | | \__ \ (_) | |  __/ /__| (_) | | | | | | | | | | | (_| | | | | (_| |
  354.     \_/ \_/_|_|\___/ \_/\_/\____/\___/|_| |_|___/\___/|_|\___\____/\___/|_| |_| |_|_| |_| |_|\__,_|_| |_|\__,_|
  355.  
  356.     bWhitelist, by default, has a console command to open the menu. It is ALWAYS "bwhitelist".
  357.     You can turn it on and off here.
  358.  
  359. ]] config.AllowConsoleCommand = true --[[
  360.  
  361.      __ _                                       _     _ _       _ _     _           _  __        _
  362.     / _\ |__   _____      __/\ /\ _ ____      _| |__ (_) |_ ___| (_)___| |_ ___  __| | \ \  ___ | |__  ___
  363.     \ \| '_ \ / _ \ \ /\ / / / \ \ '_ \ \ /\ / / '_ \| | __/ _ \ | / __| __/ _ \/ _` |  \ \/ _ \| '_ \/ __|
  364.     _\ \ | | | (_) \ V  V /\ \_/ / | | \ V  V /| | | | | ||  __/ | \__ \ ||  __/ (_| /\_/ / (_) | |_) \__ \
  365.     \__/_| |_|\___/ \_/\_/  \___/|_| |_|\_/\_/ |_| |_|_|\__\___|_|_|___/\__\___|\__,_\___/ \___/|_.__/|___/
  366.  
  367.     If false, players won't see the jobs they're not whitelisted to in the F4 menu.
  368.     If true, players will see the jobs they're not whitelisted to in the F4 menu.
  369.  
  370. ]] config.ShowUnwhitelistedJobs = true --[[
  371.  
  372.      ______                _   _             __  __                  _  __
  373.     |  ____|              | | (_)           |  \/  |                | |/ /
  374.     | |__ _   _ _ __   ___| |_ _  ___  _ __ | \  / | ___ _ __  _   _| ' / ___ _   _
  375.     |  __| | | | '_ \ / __| __| |/ _ \| '_ \| |\/| |/ _ \ '_ \| | | |  < / _ \ | | |
  376.     | |  | |_| | | | | (__| |_| | (_) | | | | |  | |  __/ | | | |_| | . \  __/ |_| |
  377.     |_|   \__,_|_| |_|\___|\__|_|\___/|_| |_|_|  |_|\___|_| |_|\__,_|_|\_\___|\__, |
  378.                                                                               __/ |
  379.                                                                              |___/
  380.     If false, F1, F2, F3 and F4 will NOT open the menu.
  381.     If 1, F1 will open the menu.
  382.     If 2, F2 will open the menu.
  383.     If 3, F3 will open the menu.
  384.     If 4, F4 will open the menu.
  385.  
  386.     If your players are saying that their F1/F2/F3/F4 key is not opening the menu
  387.     and you have this on, tell them to rebind their F1, F2, F3 and F4 keys:
  388.  
  389.     bind f1 gm_showhelp
  390.     bind f2 gm_showteam
  391.     bind f3 gm_showspare1
  392.     bind f4 gm_showspare2
  393.  
  394.     Examples:
  395.  
  396.     config.FunctionMenuKey = false
  397.  
  398.     config.FunctionMenuKey = 1
  399.  
  400.     config.FunctionMenuKey = 2
  401.  
  402.     config.FunctionMenuKey = 3
  403.  
  404.     config.FunctionMenuKey = 4
  405.  
  406. ]] config.FunctionMenuKey = false --[[
  407.  
  408.                     _        _____         _ _       _    
  409.          /\        | |      / ____|       (_) |     | |    
  410.         /  \  _   _| |_ ___| (_____      ___| |_ ___| |__  
  411.        / /\ \| | | | __/ _ \\___ \ \ /\ / / | __/ __| '_ \
  412.       / ____ \ |_| | || (_) |___) \ V  V /| | || (__| | | |
  413.      /_/    \_\__,_|\__\___/_____/ \_/\_/ |_|\__\___|_| |_|
  414.                                                                                                          
  415.     If true, when a player is whitelisted to a job, they will be automatically switched to it.
  416.     If false, they will not.
  417.  
  418. ]] config.AutoSwitch = false --[[
  419.  
  420.        _____            _            _   __  __                  
  421.       / ____|          | |          | | |  \/  |                
  422.      | |     ___  _ __ | |_ _____  _| |_| \  / | ___ _ __  _   _
  423.      | |    / _ \| '_ \| __/ _ \ \/ / __| |\/| |/ _ \ '_ \| | | |
  424.      | |___| (_) | | | | ||  __/>  <| |_| |  | |  __/ | | | |_| |
  425.       \_____\___/|_| |_|\__\___/_/\_\\__|_|  |_|\___|_| |_|\__,_|
  426.                                                                  
  427.    
  428.     If true, then players can interact with bWhitelist through the context menu (recommended)
  429.     If false, then this feature is disabled
  430.  
  431. ]] config.ContextMenu = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement