Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.74 KB | None | 0 0
  1. require("bwhitelist_simplerr")local config = BWhitelist.Config--[[
  2.  
  3. ██╗ ██╗ █████╗ ██████╗ ███╗ ██╗██╗███╗ ██╗ ██████╗
  4. ██║ ██║██╔══██╗██╔══██╗████╗ ██║██║████╗ ██║██╔════╝
  5. ██║ █╗ ██║███████║██████╔╝██╔██╗ ██║██║██╔██╗ ██║██║ ███╗
  6. ██║███╗██║██╔══██║██╔══██╗██║╚██╗██║██║██║╚██╗██║██║ ██║
  7. ╚███╔███╔╝██║ ██║██║ ██║██║ ╚████║██║██║ ╚████║╚██████╔╝
  8. ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝╚═╝ ╚═══╝ ╚═════╝
  9.  
  10. If you are using a leak of BWhitelist, before you even bother to configure it, I warn you that the leak WILL NOT work.
  11.  
  12. If you are willing to take the risk, you may be causing yourself a danger. SO DON'T DO IT.
  13.  
  14. You can purchase the script on ScriptFodder.
  15.  
  16. FRANÇAIS
  17.  
  18. 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.
  19.  
  20. Si tu tiens à prendre le risque, tu te poses un danger inutile. ALORS NE LE FAIS PAS.
  21.  
  22. Tu peux acheter ce script sur ScriptFodder.
  23.  
  24. ------------------------------------------------------------------------------------------------------------------------------------------------------------------
  25.  
  26.  
  27. ██████╗ ██╗ ██╗██╗ ██╗██╗████████╗███████╗██╗ ██╗███████╗████████╗ ██████╗ ██████╗ ███╗ ██╗███████╗██╗ ██████╗
  28. ██╔══██╗██║ ██║██║ ██║██║╚══██╔══╝██╔════╝██║ ██║██╔════╝╚══██╔══╝ ██╔════╝██╔═══██╗████╗ ██║██╔════╝██║██╔════╝
  29. ██████╔╝██║ █╗ ██║███████║██║ ██║ █████╗ ██║ ██║███████╗ ██║ ██║ ██║ ██║██╔██╗ ██║█████╗ ██║██║ ███╗
  30. ██╔══██╗██║███╗██║██╔══██║██║ ██║ ██╔══╝ ██║ ██║╚════██║ ██║ ██║ ██║ ██║██║╚██╗██║██╔══╝ ██║██║ ██║
  31. ██████╔╝╚███╔███╔╝██║ ██║██║ ██║ ███████╗███████╗██║███████║ ██║ ╚██████╗╚██████╔╝██║ ╚████║██║ ██║╚██████╔╝
  32. ╚═════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝╚══════╝╚═╝╚══════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝
  33.  
  34. Disclaimer : The developer is not here to help you with your configuration. If you are getting errors with your config file,
  35. unfortunately you are alone.
  36.  
  37. Disclaimer : The default team cannot be whitelisted as this will cause problems with DarkRP.
  38.  
  39. SteamID (64): SteamIDs is a way of uniquely identifying a Steam account. Every Steam account has one and they are all different.
  40.  
  41. A SteamID is styled like : STEAM_0:1:40314158
  42. A SteamID64 is styled like: 76561198040894045
  43.  
  44. You can find SteamIDs at various SteamID websites. I recommend my own, http://steamid.billyvenner.xyz or http://steamid.co.uk
  45.  
  46. Explanations:
  47.  
  48. ██╗ ██████╗██╗ ██╗ █████╗ ████████╗ ██████╗ ██████╗ ███╗ ███╗███╗ ███╗ █████╗ ███╗ ██╗██████╗
  49. ███║ ██╔════╝██║ ██║██╔══██╗╚══██╔══╝██╔════╝██╔═══██╗████╗ ████║████╗ ████║██╔══██╗████╗ ██║██╔══██╗
  50. ╚██║ ██║ ███████║███████║ ██║ ██║ ██║ ██║██╔████╔██║██╔████╔██║███████║██╔██╗ ██║██║ ██║
  51. ██║ ██║ ██╔══██║██╔══██║ ██║ ██║ ██║ ██║██║╚██╔╝██║██║╚██╔╝██║██╔══██║██║╚██╗██║██║ ██║
  52. ██║ ╚██████╗██║ ██║██║ ██║ ██║ ╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ╚═╝ ██║██║ ██║██║ ╚████║██████╔╝
  53. ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═════╝
  54.  
  55.  
  56. config.ChatCommand simply allows you to set the chat command for opening BWhitelist.
  57.  
  58. Change it to whatever you want. By default, it is !bwhitelist. It is also case insensitive.
  59.  
  60.  
  61. ██████╗ ███╗ ███╗ █████╗ ██╗ ██╗██████╗ ███████╗██████╗ ███╗ ███╗██╗████████╗████████╗███████╗██████╗ ██████╗██╗ ███████╗ █████╗ ██████╗
  62. ╚════██╗ ████╗ ████║██╔══██╗╚██╗██╔╝██╔══██╗██╔════╝██╔══██╗████╗ ████║██║╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗██╔════╝██║ ██╔════╝██╔══██╗██╔══██╗
  63. █████╔╝ ██╔████╔██║███████║ ╚███╔╝ ██████╔╝█████╗ ██████╔╝██╔████╔██║██║ ██║ ██║ █████╗ ██║ ██║██║ ██║ █████╗ ███████║██████╔╝
  64. ██╔═══╝ ██║╚██╔╝██║██╔══██║ ██╔██╗ ██╔═══╝ ██╔══╝ ██╔══██╗██║╚██╔╝██║██║ ██║ ██║ ██╔══╝ ██║ ██║██║ ██║ ██╔══╝ ██╔══██║██╔══██╗
  65. ███████╗ ██║ ╚═╝ ██║██║ ██║██╔╝ ██╗██║ ███████╗██║ ██║██║ ╚═╝ ██║██║ ██║ ██║ ███████╗██████╔╝╚██████╗███████╗███████╗██║ ██║██║ ██║
  66. ╚══════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═════╝ ╚═════╝╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝
  67.  
  68. Set to true (on) to make it so that only MaxPermitted users can clear whitelists. "Leaders" (explained later) will still be able to remove people from whitelists.
  69.  
  70. If this if false (off) "Leaders" will be able to clear whitelists.
  71.  
  72.  
  73. ██████╗ ██████╗ ██╗ ██████╗ ██████╗ ███████╗███████╗██╗ ██╗██████╗ ██████╗ ██████╗ ██████╗ ████████╗
  74. ╚════██╗ ██╔══██╗██║ ██╔═══██╗██╔════╝ ██╔════╝██╔════╝██║ ██║██╔══██╗██╔══██╗██╔═══██╗██╔══██╗╚══██╔══╝
  75. █████╔╝ ██████╔╝██║ ██║ ██║██║ ███╗███████╗███████╗██║ ██║██████╔╝██████╔╝██║ ██║██████╔╝ ██║
  76. ╚═══██╗ ██╔══██╗██║ ██║ ██║██║ ██║╚════██║╚════██║██║ ██║██╔═══╝ ██╔═══╝ ██║ ██║██╔══██╗ ██║
  77. ██████╔╝ ██████╔╝███████╗╚██████╔╝╚██████╔╝███████║███████║╚██████╔╝██║ ██║ ╚██████╔╝██║ ██║ ██║
  78. ╚═════╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝
  79.  
  80. If true (on), if bLogs is detected on your server BWhitelist actions will be logged.
  81.  
  82. You can leave this on even if you don't have bLogs.
  83.  
  84. You can buy bLogs at http://billyslogs.xyz :)
  85.  
  86.  
  87. ██╗ ██╗ ███╗ ███╗ █████╗ ██╗ ██╗██████╗ ███████╗██████╗ ███╗ ███╗██╗████████╗████████╗███████╗██████╗ ███████╗██╗ ██╗██╗██████╗ ██╗ ██╗██╗ ██╗██╗████████╗███████╗██╗ ██╗███████╗████████╗
  88. ██║ ██║ ████╗ ████║██╔══██╗╚██╗██╔╝██╔══██╗██╔════╝██╔══██╗████╗ ████║██║╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗██╔════╝██║ ██╔╝██║██╔══██╗██║ ██║██║ ██║██║╚══██╔══╝██╔════╝██║ ██║██╔════╝╚══██╔══╝
  89. ███████║ ██╔████╔██║███████║ ╚███╔╝ ██████╔╝█████╗ ██████╔╝██╔████╔██║██║ ██║ ██║ █████╗ ██║ ██║███████╗█████╔╝ ██║██████╔╝██║ █╗ ██║███████║██║ ██║ █████╗ ██║ ██║███████╗ ██║
  90. ╚════██║ ██║╚██╔╝██║██╔══██║ ██╔██╗ ██╔═══╝ ██╔══╝ ██╔══██╗██║╚██╔╝██║██║ ██║ ██║ ██╔══╝ ██║ ██║╚════██║██╔═██╗ ██║██╔═══╝ ██║███╗██║██╔══██║██║ ██║ ██╔══╝ ██║ ██║╚════██║ ██║
  91. ██║ ██║ ╚═╝ ██║██║ ██║██╔╝ ██╗██║ ███████╗██║ ██║██║ ╚═╝ ██║██║ ██║ ██║ ███████╗██████╔╝███████║██║ ██╗██║██║ ╚███╔███╔╝██║ ██║██║ ██║ ███████╗███████╗██║███████║ ██║
  92. ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝╚══════╝╚═╝╚══════╝ ╚═╝
  93.  
  94. config.MaxPermittedSkipWhitelist allows you to make it so MaxPermitted users skip whitelists.
  95.  
  96. If true, when they try to join a whitelisted job, it will skip the whitelist and let them join it.
  97.  
  98.  
  99. ███████╗ ███╗ ███╗ █████╗ ██╗ ██╗██████╗ ███████╗██████╗ ███╗ ███╗██╗████████╗████████╗███████╗██████╗
  100. ██╔════╝ ████╗ ████║██╔══██╗╚██╗██╔╝██╔══██╗██╔════╝██╔══██╗████╗ ████║██║╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗
  101. ███████╗ ██╔████╔██║███████║ ╚███╔╝ ██████╔╝█████╗ ██████╔╝██╔████╔██║██║ ██║ ██║ █████╗ ██║ ██║
  102. ╚════██║ ██║╚██╔╝██║██╔══██║ ██╔██╗ ██╔═══╝ ██╔══╝ ██╔══██╗██║╚██╔╝██║██║ ██║ ██║ ██╔══╝ ██║ ██║
  103. ███████║ ██║ ╚═╝ ██║██║ ██║██╔╝ ██╗██║ ███████╗██║ ██║██║ ╚═╝ ██║██║ ██║ ██║ ███████╗██████╔╝
  104. ╚══════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═════╝
  105.  
  106. config.MaxPermitted users are "administrators" of BWhitelist.
  107.  
  108. They can ban users from whitelists, see all whitelists, add anyone to a whitelist, remove anyone, you get the jist.
  109.  
  110. It also allows them to edit some areas of the configuration and perform "super admin" like actions. For example, importing
  111. from other whitelist systems.
  112.  
  113. Please make sure only trusted users are part of this group.
  114.  
  115. Please follow the example below on how to add users to it.
  116.  
  117. config.MaxPermitted = {
  118.  
  119. "76561198040894045", -- SteamID64
  120. "STEAM_0:1:40314158", -- SteamID
  121. "superadmin", -- Usergroup (works with all admin mods)
  122. TEAM_ADMIN_ON_DUTY, -- TEAM_ variable (or the team's number for advanced users)
  123.  
  124. }
  125.  
  126.  
  127. ██████╗ ██████╗ ███████╗██████╗ ███╗ ███╗██╗███████╗███████╗██╗ ██████╗ ███╗ ██╗███████╗
  128. ██╔════╝ ██╔══██╗██╔════╝██╔══██╗████╗ ████║██║██╔════╝██╔════╝██║██╔═══██╗████╗ ██║██╔════╝
  129. ███████╗ ██████╔╝█████╗ ██████╔╝██╔████╔██║██║███████╗███████╗██║██║ ██║██╔██╗ ██║███████╗
  130. ██╔═══██╗ ██╔═══╝ ██╔══╝ ██╔══██╗██║╚██╔╝██║██║╚════██║╚════██║██║██║ ██║██║╚██╗██║╚════██║
  131. ╚██████╔╝ ██║ ███████╗██║ ██║██║ ╚═╝ ██║██║███████║███████║██║╚██████╔╝██║ ╚████║███████║
  132. ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝
  133.  
  134. config.Permissions is very like MaxPermitted but in a different structure and functionality.
  135.  
  136. Permissions allows you to set what usergroups, SteamIDs and SteamID64s can edit specific whitelists.
  137.  
  138. Remember: MaxPermitted users can edit ANY whitelist.
  139.  
  140. An example of config.Permissions is below
  141.  
  142. config.Permissions = {
  143.  
  144. [TEAM_REGIMENT_COMMANDER] = { --// "Leader"
  145. TEAM_REGIMENT_MEMBER, --// "Member"
  146. TEAM_REGIMENT_UPPER_MEMBER, --// "Member"
  147. },
  148.  
  149. ["superadmin"] = {
  150.  
  151. TEAM_REGIMENT_MEMBER,
  152. TEAM_REGIMENT_UPPER_MEMBER,
  153.  
  154. },
  155.  
  156. ["STEAM_0:1:40314158"] = {
  157.  
  158. TEAM_REGIMENT_MEMBER,
  159. TEAM_REGIMENT_UPPER_MEMBER,
  160.  
  161. },
  162.  
  163. ["76561198040894045"] = {
  164.  
  165. TEAM_REGIMENT_MEMBER,
  166. TEAM_REGIMENT_UPPER_MEMBER,
  167.  
  168. },
  169.  
  170. }
  171.  
  172. As you can see, I have labelled "Leader" and "Member".
  173.  
  174. A Leader is a user who is permitted to edit the whitelist of the Members.
  175.  
  176. A Leader can be a SteamID, SteamID64, usergroup, TEAM_ variable or a team's number (for advanced users).
  177.  
  178. The Member MUST be a TEAM_ variable or a team's number.
  179.  
  180. If you get an error here that is similar to "index of table is nil", it means that you are trying to use a TEAM_ variable that does not exist.
  181.  
  182.  
  183. ████████╗██╗ ██╗ █████╗ ███╗ ██╗██╗ ██╗ ██╗ ██╗ ██████╗ ██╗ ██╗
  184. ╚══██╔══╝██║ ██║██╔══██╗████╗ ██║██║ ██╔╝ ╚██╗ ██╔╝██╔═══██╗██║ ██║
  185. ██║ ███████║███████║██╔██╗ ██║█████╔╝ ╚████╔╝ ██║ ██║██║ ██║
  186. ██║ ██╔══██║██╔══██║██║╚██╗██║██╔═██╗ ╚██╔╝ ██║ ██║██║ ██║
  187. ██║ ██║ ██║██║ ██║██║ ╚████║██║ ██╗ ██║ ╚██████╔╝╚██████╔╝
  188. ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝
  189.  
  190. You've now configured BWhitelist. Thank you for purchasing!
  191.  
  192. If you need any help (such as questions ABOUT the configuration and NOT errors please) then you can create a ticket for assistance.
  193.  
  194. ]]
  195.  
  196. -- These are all just examples! You can change them as you wish
  197.  
  198. -- 1
  199. config.ChatCommand = "!bwhitelist"
  200.  
  201. -- 2
  202. config.MaxPermittedClear = true
  203.  
  204. -- 3
  205. config.bLogsSupport = true
  206.  
  207. -- 4
  208. config.MaxPermittedSkipWhitelist = true
  209.  
  210. -- 5
  211. config.MaxPermitted = {
  212. "superadmin",
  213. "admin",
  214. "senior admin",
  215. "STEAM_0:1:55883184"
  216.  
  217. }
  218.  
  219. -- 6
  220. config.Permissions = {
  221.  
  222. ["trial staff"] = {
  223.  
  224. TEAM_CLONETROOPER,
  225. TEAM_ARCTRAINEE,
  226. TEAM_GMTROOPER,
  227. TEAM_104TROOPER,
  228. TEAM_501TROOPER,
  229. TEAM_212TROOPER,
  230. TEAM_41TROOPER,
  231. TEAM_SHOCKTROOPER,
  232. TEAM_327TROOPER,
  233. TEAM_612TROOPER,
  234.  
  235.  
  236. },
  237.  
  238. ["moderator"] = {
  239.  
  240. TEAM_CLONETROOPER,
  241. TEAM_ARCTRAINEE,
  242. TEAM_GMTROOPER,
  243. TEAM_104TROOPER,
  244. TEAM_501TROOPER,
  245. TEAM_212TROOPER,
  246. TEAM_41TROOPER,
  247. TEAM_SHOCKTROOPER,
  248. TEAM_327TROOPER,
  249. TEAM_612TROOPER,
  250.  
  251.  
  252. },
  253.  
  254. ["STEAM_0:1:40314158"] = {
  255.  
  256. TEAM_PADAWAN,
  257.  
  258. },
  259.  
  260. ["76561198040894045"] = {
  261.  
  262. TEAM_REGIMENT_MEMBER,
  263. TEAM_REGIMENT_LEADER,
  264.  
  265. },
  266.  
  267. [TEAM_CLONECOMMANDER] = {
  268.  
  269. TEAM_CLONETROOPER,
  270. TEAM_CLONESGT,
  271. TEAM_CLONEPILOT,
  272. TEAM_CLONEOFFICER,
  273.  
  274. },
  275.  
  276. [TEAM_ARCCOMMANDER] = {
  277.  
  278. TEAM_ARCTRAINEE,
  279. TEAM_ARCSERGEANT,
  280. TEAM_ARCLIEUTENANT,
  281. TEAM_ARCSNIPER,
  282. TEAM_ARCDEMOLITIONIST,
  283. TEAM_ARCCAPTAIN,
  284. TEAM_ARCMEDIC,
  285. TEAM_ARCPILOT,
  286. TEAM_CLONETROOPER,
  287.  
  288. },
  289.  
  290. [TEAM_GMCOMMANDER] = {
  291.  
  292. TEAM_GMTROOPER,
  293. TEAM_GMOFFICER,
  294. TEAM_CLONETROOPER,
  295.  
  296. },
  297.  
  298. [TEAM_104COMMANDER] = {
  299.  
  300. TEAM_104TROOPER,
  301. TEAM_104OFFICER,
  302. TEAM_CLONETROOPER,
  303. },
  304.  
  305. [TEAM_501CAPTAIN] = {
  306.  
  307. TEAM_501TROOPER,
  308. TEAM_501OFFICER,
  309. TEAM_501MEDIC,
  310. TEAM_CLONETROOPER,
  311. },
  312.  
  313. [TEAM_212COMMANDER] = {
  314.  
  315. TEAM_212TROOPER,
  316. TEAM_212OFFICER,
  317. TEAM_212MEDIC,
  318. TEAM_CLONETROOPER,
  319. },
  320.  
  321. [TEAM_41COMMANDER] = {
  322.  
  323. TEAM_41TROOPER,
  324. TEAM_41OFFICER,
  325. TEAM_CLONETROOPER,
  326. },
  327.  
  328. [TEAM_SHOCKCOMMANDER] = {
  329.  
  330. TEAM_SHOCKTROOPER,
  331. TEAM_SHOCKOFFICER,
  332. TEAM_CLONETROOPER,
  333. },
  334.  
  335. [TEAM_327COMMANDER] = {
  336.  
  337. TEAM_327TROOPER,
  338. TEAM_327OFFICER,
  339. TEAM_CLONETROOPER,
  340. },
  341.  
  342. [TEAM_612COMMANDER] = {
  343.  
  344. TEAM_612TROOPER,
  345. TEAM_612OFFICER,
  346. TEAM_CLONETROOPER,
  347. },
  348.  
  349. [TEAM_NAVYADMIRAL] = {
  350.  
  351. TEAM_NAVYOFFICER,
  352. TEAM_NAVYENGINEER,
  353. TEAM_NAVYPILOT,
  354. TEAM_CLONETROOPER,
  355. },
  356. }
  357.  
  358.  
  359. -- 7
  360. config.FailureText = "You aren't whitelisted for this job!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement