Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.12 KB | None | 0 0
  1. ///////////////////////////////////////////////////
  2. // /\ /\___ (_) __| | / __\ |__ __ _ _ __ //
  3. // \ \ / / _ \| |/ _` |/ / | '_ \ / _` | '__| //
  4. // \ V / (_) | | (_| / /___| | | | (_| | | //
  5. // \_/ \___/|_|\__,_\____/|_| |_|\__,_|_| //
  6. ///////////////////////////////////////////////////
  7.  
  8.  
  9. /////////////////////////
  10. //// Support ////
  11. /////////////////////////
  12.  
  13. // If you experience any issues with the script, need any help,
  14. // or you have found a bug, please open a ticket on GModStore.
  15.  
  16. // Licensed to: 76561198115639927
  17.  
  18. /////////////////////////
  19. //// Credits ////
  20. /////////////////////////
  21.  
  22. // Sample music by bensound.com
  23.  
  24. //////////////////////////////////
  25. //// ADDITIONAL CONFIGURATION ////
  26. //////////////////////////////////
  27.  
  28. // Configure fonts in voidchar/lua/voidchar/vgui/_fonts.lua
  29. // Configure languages in voidchar/lua/voidchar/languages
  30. // Configure MySQL in voidchar/lua/voidchar_mysql.lua
  31.  
  32.  
  33. ///////////////////
  34. //// General ////
  35. ///////////////////
  36.  
  37. VoidChar.Config.Language = "fr" -- Which language to use (available languages: en, de, fr, ru, da)
  38.  
  39. VoidChar.Config.CheckForUpdates = true -- Check for new updates every start (recommended)
  40.  
  41. VoidChar.Config.UseBWhitelist = false -- True if you want to use bWhitelist instead (disables script's default whitelist)
  42. VoidChar.Config.ItemStoreSupport = false -- Support ItemStore (separate inventories)
  43. VoidChar.Config.LevelSystemSupport = true -- Support vrondakis Leveling system (separate XP)
  44. --VoidChar.Config.CharacterClothesSupport = true -- Support Character & Clothes addon (separate clothing) [WORK IN PROGRESS, WILL BE AVAILABLE SOON]
  45. VoidChar.Config.xAdminSupport = false -- Use xAdmin instead of ULX/ServerGuard ranking. Will use the group name.
  46.  
  47. VoidChar.Config.BodygroupOption = false -- Enable selection bodygroup option
  48.  
  49. VoidChar.Config.DefaultMoney = 0 -- Starting money for each character
  50. VoidChar.Config.MaxCharacters = 4 -- Max characters per person (MAX POSSIBLE VALUE IS 5)
  51. VoidChar.Config.Wait = 5 -- Delay between changing characters
  52.  
  53. VoidChar.Config.CharacterCreateCooldown = 10 // Cooldown in minutes for creating characters
  54. VoidChar.Config.JobSwitchCooldown = 10 // Cooldown in minutes between changing jobs
  55.  
  56. VoidChar.Config.MinNameLength = 4 -- Minimum length for a players name
  57. VoidChar.Config.MaxNameLength = 20 -- Maximum length for a players name
  58.  
  59. VoidChar.Config.RestrictedWords = {} -- Restricted words in a name
  60.  
  61. VoidChar.Config.ForceTwoNames = false -- Force players to enter first name and last name
  62. VoidChar.Config.RestrictThreeNames = false -- Restrict 3 words in a name
  63.  
  64. VoidChar.Config.RestrictF4Changing = true -- Restrict changing jobs in f4 menu
  65. VoidChar.Config.RestrictRPNameChange = true -- Restrict changing the RPName using /name
  66.  
  67. VoidChar.Config.JobChangeCost = 0 -- Cost for changing the job, for DEFAULT Job NPCs (set to 0 for free)
  68. VoidChar.Config.IdentityChangeCost = 5000 -- Cost for changing your model and/or name (set to 0 for free)
  69.  
  70. VoidChar.Config.ModelSequences = {} -- Sequences (animations/poses) for playermodels in selection menu. If empty, none will be set.
  71. // Example sequences: {"pose_standing_01", "pose_standing_02"}
  72.  
  73. ////////////////////////////
  74. /// Factions ///
  75. ////////////////////////////
  76.  
  77. VoidChar.Config.FactionSystem = true -- Use faction system, where you need to select a faction before creating a character
  78.  
  79. VoidChar.Config.UseBWhitelistFactions = false -- Use bWhitelist factions
  80. // NOTE: You need to disable showing of the popup and chat/console command.
  81. // (https://m0uka.xyz/u/images/png/liFAc.png)
  82.  
  83. VoidChar.Config.DifferentFactionJobSwitch = false -- Allow to switch jobs using the Job NPC to different faction jobs (faction will NOT be changed)
  84.  
  85. hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPFactionInit", function ()
  86.  
  87. // Faction system: Up to 4 factions allowed
  88. // Leave empty when using BWhitelistFactions!!!
  89. VoidChar.Config.Factions = { -- Use this if VoidChar.Config.FactionSystem is enabled -> structure: faction name = [table of jobs] (whitelist will still apply!)
  90. ["Gryffondor"] = {
  91. [TEAM_GRYFFONDOR1] = true,
  92. [TEAM_GRYFFONDOR2] = true,
  93. [TEAM_GRYFFONDOR2] = true,
  94. [TEAM_GRYFFONDOR3] = true,
  95. [TEAM_GRYFFONDOR4] = true,
  96. [TEAM_GRYFFONDOR5] = true,
  97. [TEAM_GRYFFONDOR6] = true,
  98. [TEAM_GRYFFONDOR7] = true,
  99. [TEAM_GRYFFONDORP] = true,
  100. [TEAM_PREFETENCHEF] = true,
  101.  
  102. [TEAM_INFIRMIERE] = true,
  103. [TEAM_FANTOME] = true,
  104. [TEAM_ELF] = true,
  105. [TEAM_AUROR] = true,
  106. [TEAM_MAGE_NOIR] = true,
  107.  
  108. [TEAM_PROFESSEUR_DIVINATION] = true,
  109. [TEAM_PROFESSEUR_EDM] = true,
  110. [TEAM_PROFESSEUR_HM] = true,
  111. [TEAM_PROFESSEUR_BOTANIQUE] = true,
  112. [TEAM_PROFESSEUR_METEMORPHOSE] = true,
  113. [TEAM_PROFESSEUR_SORTILEGE] = true,
  114. [TEAM_PROFESSEUR_DFCFM] = true,
  115. [TEAM_PROFESSEUR_ASTRONOMIE] = true,
  116. [TEAM_PROFESSEUR_POTION] = true,
  117. [TEAM_PROFESSEUR] = true,
  118. [TEAM_DIRECTEURGRYFFONDOR] = true,
  119. [TEAM_GARDECHASSE] = true,
  120. [TEAM_CONCIERGES] = true,
  121. [TEAM_DIRECTEUR] = true,
  122.  
  123. [TEAM_MANGEMORT] = true,
  124. [TEAM_MANGEMORT_MDC] = true,
  125. },
  126.  
  127. ["Serpentard"] = {
  128. [TEAM_SERPENTARD1] = true,
  129. [TEAM_SERPENTARD2] = true,
  130. [TEAM_SERPENTARD2] = true,
  131. [TEAM_SERPENTARD3] = true,
  132. [TEAM_SERPENTARD4] = true,
  133. [TEAM_SERPENTARD5] = true,
  134. [TEAM_SERPENTARD6] = true,
  135. [TEAM_SERPENTARD7] = true,
  136. [TEAM_SERPENTARDP] = true,
  137. [TEAM_PREFETENCHEF] = true,
  138.  
  139. [TEAM_INFIRMIERE] = true,
  140. [TEAM_FANTOME] = true,
  141. [TEAM_ELF] = true,
  142. [TEAM_AUROR] = true,
  143. [TEAM_MAGE_NOIR] = true,
  144.  
  145. [TEAM_PROFESSEUR_DIVINATION] = true,
  146. [TEAM_PROFESSEUR_EDM] = true,
  147. [TEAM_PROFESSEUR_HM] = true,
  148. [TEAM_PROFESSEUR_BOTANIQUE] = true,
  149. [TEAM_PROFESSEUR_METEMORPHOSE] = true,
  150. [TEAM_PROFESSEUR_SORTILEGE] = true,
  151. [TEAM_PROFESSEUR_DFCFM] = true,
  152. [TEAM_PROFESSEUR_ASTRONOMIE] = true,
  153. [TEAM_PROFESSEUR_POTION] = true,
  154. [TEAM_PROFESSEUR] = true,
  155. [TEAM_DIRECTEURSERPENTARD] = true,
  156. [TEAM_GARDECHASSE] = true,
  157. [TEAM_CONCIERGES] = true,
  158. [TEAM_DIRECTEUR] = true,
  159.  
  160. [TEAM_MANGEMORT] = true,
  161. [TEAM_MANGEMORT_MDC] = true,
  162. },
  163.  
  164. ["Serdaigle"] = {
  165. [TEAM_SERDAIGLE1] = true,
  166. [TEAM_SERDAIGLE2] = true,
  167. [TEAM_SERDAIGLE2] = true,
  168. [TEAM_SERDAIGLE3] = true,
  169. [TEAM_SERDAIGLE4] = true,
  170. [TEAM_SERDAIGLE5] = true,
  171. [TEAM_SERDAIGLE6] = true,
  172. [TEAM_SERDAIGLE7] = true,
  173. [TEAM_SERDAIGLEP] = true,
  174. [TEAM_PREFETENCHEF] = true,
  175.  
  176. [TEAM_INFIRMIERE] = true,
  177. [TEAM_FANTOME] = true,
  178. [TEAM_ELF] = true,
  179. [TEAM_AUROR] = true,
  180. [TEAM_MAGE_NOIR] = true,
  181.  
  182. [TEAM_PROFESSEUR_DIVINATION] = true,
  183. [TEAM_PROFESSEUR_EDM] = true,
  184. [TEAM_PROFESSEUR_HM] = true,
  185. [TEAM_PROFESSEUR_BOTANIQUE] = true,
  186. [TEAM_PROFESSEUR_METEMORPHOSE] = true,
  187. [TEAM_PROFESSEUR_SORTILEGE] = true,
  188. [TEAM_PROFESSEUR_DFCFM] = true,
  189. [TEAM_PROFESSEUR_ASTRONOMIE] = true,
  190. [TEAM_PROFESSEUR_POTION] = true,
  191. [TEAM_PROFESSEUR] = true,
  192. [TEAM_DIRECTEURSERDAIGLE] = true,
  193. [TEAM_GARDECHASSE] = true,
  194. [TEAM_CONCIERGES] = true,
  195. [TEAM_DIRECTEUR] = true,
  196.  
  197. [TEAM_MANGEMORT] = true,
  198. [TEAM_MANGEMORT_MDC] = true,
  199. },
  200.  
  201. ["Poufsouffle"] = {
  202. [TEAM_POUSFSOUFFLE1] = true,
  203. [TEAM_POUSFSOUFFLE2] = true,
  204. [TEAM_POUSFSOUFFLE2] = true,
  205. [TEAM_POUSFSOUFFLE3] = true,
  206. [TEAM_POUSFSOUFFLE4] = true,
  207. [TEAM_POUSFSOUFFLE5] = true,
  208. [TEAM_POUSFSOUFFLE6] = true,
  209. [TEAM_POUSFSOUFFLE7] = true,
  210. [TEAM_POUSFSOUFFLEP] = true,
  211. [TEAM_PREFETENCHEF] = true,
  212.  
  213. [TEAM_INFIRMIERE] = true,
  214. [TEAM_FANTOME] = true,
  215. [TEAM_ELF] = true,
  216. [TEAM_AUROR] = true,
  217. [TEAM_MAGE_NOIR] = true,
  218.  
  219. [TEAM_PROFESSEUR_DIVINATION] = true,
  220. [TEAM_PROFESSEUR_EDM] = true,
  221. [TEAM_PROFESSEUR_HM] = true,
  222. [TEAM_PROFESSEUR_BOTANIQUE] = true,
  223. [TEAM_PROFESSEUR_METEMORPHOSE] = true,
  224. [TEAM_PROFESSEUR_SORTILEGE] = true,
  225. [TEAM_PROFESSEUR_DFCFM] = true,
  226. [TEAM_PROFESSEUR_ASTRONOMIE] = true,
  227. [TEAM_PROFESSEUR_POTION] = true,
  228. [TEAM_PROFESSEUR] = true,
  229. [TEAM_DIRECTEURPOUFSOUFFLE] = true,
  230. [TEAM_GARDECHASSE] = true,
  231. [TEAM_CONCIERGES] = true,
  232. [TEAM_DIRECTEUR] = true,
  233.  
  234. [TEAM_MANGEMORT] = true,
  235. [TEAM_MANGEMORT_MDC] = true,
  236. },
  237. }
  238.  
  239. VoidChar.Config.FactionsJobVisible = {
  240. ["Gryffondor"] = {
  241. [TEAM_GRYFFONDOR1] = true,
  242.  
  243. [TEAM_INFIRMIERE] = true,
  244. [TEAM_FANTOME] = true,
  245. [TEAM_ELF] = true,
  246. },
  247. ["Serpentard"] = {
  248. [TEAM_SERPENTARD1] = true,
  249.  
  250. [TEAM_INFIRMIERE] = true,
  251. [TEAM_FANTOME] = true,
  252. [TEAM_ELF] = true,
  253. },
  254. ["Serdaigle"] = {
  255. [TEAM_SERDAIGLE1] = true,
  256.  
  257. [TEAM_INFIRMIERE] = true,
  258. [TEAM_FANTOME] = true,
  259. [TEAM_ELF] = true,
  260. },
  261. ["Poufsouffle"] = {
  262. [TEAM_POUSFSOUFFLE1] = true,
  263.  
  264. [TEAM_INFIRMIERE] = true,
  265. [TEAM_FANTOME] = true,
  266. [TEAM_ELF] = true,
  267. },
  268. }
  269.  
  270. end)
  271.  
  272. VoidChar.Config.FactionIcons = { -- if using BWhitelist factions then not needed
  273. ["Gryffondor"] = "https://vignette.wikia.nocookie.net/harrypotter/images/8/81/Blason_de_Gryffondor.png/revision/latest?cb=20130818150749&path-prefix=fr",
  274. ["Serpentard"] = "https://vignette.wikia.nocookie.net/harrypotter/images/f/fd/Blason_de_Serpentard.png/revision/latest?cb=20150103152635&path-prefix=fr",
  275. ["Serdaigle"] = "https://vignette.wikia.nocookie.net/harrypotter/images/0/0f/Blason_de_Serdaigle.png/revision/latest?cb=20150103152520&path-prefix=fr",
  276. ["Poufsouffle"] = "https://vignette.wikia.nocookie.net/harrypotter/images/d/d4/Blason_de_Poufsouffle.png/revision/latest?cb=20150103151525&path-prefix=fr",
  277. }
  278. VoidChar.Config.FactionDescription = { -- if using BWhitelist factions then not needed
  279. ["Gryffondor"] = "La maison Gryffondor tient son nom de Godric Gryffondor, l'un des quatre fondateurs de l'école. Son blason est un lion doré sur fond rouge. Les valeurs de Gryffondor sont le Courage, la Hardiesse, la Force, la Bravoure, la Détermination.",
  280. ["Serpentard"] = "La maison tient son nom de Salazar Serpentard, l'un des quatre fondateurs de l'école. On sait que la grande majorité des sorciers qui ont mal tourné était à Serpentard, ce qui a contribué à entacher la réputation de cette maison. Les valeurs de Serpentard sont la Fierté, l'Ambition, la Ruse, le Dédain des règles, la Grandeur, la Noblesse, la Provocation, ce sont des Dirigeants.",
  281. ["Serdaigle"] = "La maison tient son nom de Rowena Serdaigle, l'un des quatre fondateurs de l'école. Les valeurs de Serdaigle sont l'Intelligence, la Sagesse, l'Érudition, la Réflexion, la Curiosité, l'Originalité, Créativité.",
  282. ["Poufsouffle"] = "La maison tient son nom de Helga Poufsouffle, l'un des quatre fondateurs de l'école. Son insigne représente un blaireau sur fond de jaune et noir. Les valeurs de Poufsouffle sont la Loyauté, la Patience, la Gentillesse, la Modestie, le Travail acharné, le Fair-play, la Persévérance, la Justice, la Sincérité, la Tolérance, et l'Amour de la nature.",
  283. }
  284.  
  285. VoidChar.Config.FactionBackgrounds = {
  286. ["Gryffondor"] = {
  287. [1] = Vector(-106.572487, -2548.243164, -11179.250977),
  288. [2] = Angle(32.560043, 154.860123, 0.000000),
  289. },
  290. ["Serpentard"] = {
  291. [1] = Vector(8024.217285, 1218.746826, -12233.808594),
  292. [2] = Angle(14.519866, -164.521118, 0.000000),
  293. },
  294. ["Serdaigle"] = {
  295. [1] = Vector(-8058.976563, 175.874649, -11093.507813),
  296. [2] = Angle(19.799950, -135.379593, 0.000000),
  297. },
  298. ["Poufsouffle"] = {
  299. [1] = Vector(333.981384, 2874.282227, -11885.051758),
  300. [2] = Angle(19.360085, -116.919670, 0.000000),
  301. },
  302. }
  303.  
  304. // THIS IS A PERCENTAGE OF THE ONLINE PLAYERS ON THE SERVER
  305. // EXAMPLE: YOU HAVE 20 PEOPLE ON YOUR SERVER, 10 IS THE LIMIT FOR THE FACTION IF USING 50%
  306. // Set to 0 or make the table empty to disable
  307. VoidChar.Config.FactionMaxPlayerPercent = {
  308. ["Gryffondor"] = 0,
  309. ["Serpentard"] = 0,
  310. ["Serdaigle"] = 0,
  311. ["Poufsouffle"] = 0
  312. }
  313.  
  314.  
  315.  
  316. //////////////////////////
  317. /// Job NPCs ///
  318. //////////////////////////
  319.  
  320. hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPJobNPCsInit", function ()
  321.  
  322. // Custom Job NPCs, use the command `voidchar_setjobnpc [npc type]` while looking on a Job NPC to change its display name and available jobs
  323. // Whitelist still applies
  324. // You don't need to use a NPC model, any model will do (so you can set a prop)
  325. // Example: `voidchar_setjobnpc normalJobs`
  326. VoidChar.Config.JobNPCs = {
  327. ["Prefet de Gryffondor"] = {
  328. displayName = "Changement de classe",
  329. npcModel = "models/hpwrewrite/books/book2.mdl",
  330. changeCost = 0,
  331. jobs = {
  332. [TEAM_GRYFFONDOR2] = true,
  333. [TEAM_GRYFFONDOR3] = true,
  334. [TEAM_GRYFFONDOR4] = true,
  335. [TEAM_GRYFFONDOR5] = true,
  336. [TEAM_GRYFFONDOR6] = true,
  337. [TEAM_GRYFFONDOR7] = true,
  338. [TEAM_GRYFFONDORP] = true,
  339. [TEAM_PREFETENCHEF] = true
  340. }
  341. },
  342. ["Prefet de Serpentard"] = {
  343. displayName = "Changement de classe",
  344. npcModel = "models/hpwrewrite/books/book2.mdl",
  345. changeCost = 0,
  346. jobs = {
  347. [TEAM_SERPENTARD2] = true,
  348. [TEAM_SERPENTARD2] = true,
  349. [TEAM_SERPENTARD3] = true,
  350. [TEAM_SERPENTARD4] = true,
  351. [TEAM_SERPENTARD5] = true,
  352. [TEAM_SERPENTARD6] = true,
  353. [TEAM_SERPENTARD7] = true,
  354. [TEAM_SERPENTARDP] = true,
  355. [TEAM_PREFETENCHEF] = true
  356. }
  357. },
  358. ["Prefet de Serdaigle"] = {
  359. displayName = "Changement de classe",
  360. npcModel = "models/hpwrewrite/books/book2.mdl",
  361. changeCost = 0,
  362. jobs = {
  363. [TEAM_SERDAIGLE2] = true,
  364. [TEAM_SERDAIGLE2] = true,
  365. [TEAM_SERDAIGLE3] = true,
  366. [TEAM_SERDAIGLE4] = true,
  367. [TEAM_SERDAIGLE5] = true,
  368. [TEAM_SERDAIGLE6] = true,
  369. [TEAM_SERDAIGLE7] = true,
  370. [TEAM_SERDAIGLEP] = true,
  371. [TEAM_PREFETENCHEF] = true
  372. }
  373. },
  374. ["Prefet de Pousfsouffle"] = {
  375. displayName = "Changement de classe",
  376. npcModel = "models/hpwrewrite/books/book2.mdl",
  377. changeCost = 0,
  378. jobs = {
  379. [TEAM_POUSFSOUFFLE2] = true,
  380. [TEAM_POUSFSOUFFLE2] = true,
  381. [TEAM_POUSFSOUFFLE3] = true,
  382. [TEAM_POUSFSOUFFLE4] = true,
  383. [TEAM_POUSFSOUFFLE5] = true,
  384. [TEAM_POUSFSOUFFLE6] = true,
  385. [TEAM_POUSFSOUFFLE7] = true,
  386. [TEAM_POUSFSOUFFLEP] = true,
  387. [TEAM_PREFETENCHEF] = true
  388. }
  389. },
  390. ["Professeur"] = {
  391. displayName = "Devenir Professeur de Poudlard",
  392. npcModel = "models/hpwrewrite/books/book2.mdl",
  393. changeCost = 0,
  394. jobs = {
  395. [TEAM_PROFESSEUR_DIVINATION] = true,
  396. [TEAM_PROFESSEUR_EDM] = true,
  397. [TEAM_PROFESSEUR_HM] = true,
  398. [TEAM_PROFESSEUR_BOTANIQUE] = true,
  399. [TEAM_PROFESSEUR_METEMORPHOSE] = true,
  400. [TEAM_PROFESSEUR_SORTILEGE] = true,
  401. [TEAM_PROFESSEUR_DFCFM] = true,
  402. [TEAM_PROFESSEUR_ASTRONOMIE] = true,
  403. [TEAM_PROFESSEUR_POTION] = true,
  404. [TEAM_PROFESSEUR] = true,
  405. [TEAM_DIRECTEURGRYFFONDOR] = true,
  406. [TEAM_DIRECTEURSERPENTARD] = true,
  407. [TEAM_DIRECTEURSERDAIGLE] = true,
  408. [TEAM_DIRECTEURPOUFSOUFFLE] = true,
  409. [TEAM_GARDECHASSE] = true,
  410. [TEAM_CONCIERGES] = true,
  411. [TEAM_DIRECTEUR] = true
  412. }
  413. },
  414. ["Mage noir"] = {
  415. displayName = "[Niveau 40/Premium] Deviens un mage noir indépendant !",
  416. npcModel = "models/hpwrewrite/books/book2.mdl",
  417. changeCost = 0,
  418. jobs = {
  419. [TEAM_MAGE_NOIR] = true
  420. }
  421. },
  422. ["Auror"] = {
  423. displayName = "[Niveau 40/Premium] Rejoint les Auror après ta 7e année !",
  424. npcModel = "models/hpwrewrite/books/book2.mdl",
  425. changeCost = 0,
  426. jobs = {
  427. [TEAM_AUROR] = true
  428. }
  429. },
  430. ["Mangemort"] = {
  431. displayName = "Livre noir des mangemorts !",
  432. npcModel = "models/hpwrewrite/books/book2.mdl",
  433. changeCost = 0,
  434. jobs = {
  435. [TEAM_MANGEMORT] = true,
  436. [TEAM_MANGEMORT_MDC] = true
  437. }
  438. }
  439. }
  440.  
  441. end)
  442.  
  443.  
  444.  
  445. //////////////////////////////////
  446. /// Numbered IDs ///
  447. //////////////////////////////////
  448.  
  449. // Note: This isn't necessarily a CloneID. You can use it in PoliceRP, MilitaryRP, etc..
  450. // Clone-ID must be checked in Character Creation (if ForceCloneID is disabled)
  451.  
  452. VoidChar.Config.EnableCloneID = false -- 4-digit id will be added after name (example: John Doe #1001)
  453. VoidChar.Config.CloneID = false -- The IDs will be numbered in order - starting with 1001
  454. VoidChar.Config.ForceCloneID = false -- Force CloneID for all characters (no checkbox will be available)
  455.  
  456. VoidChar.Config.DisplayAsSuffix = false -- Display CloneID before name
  457. VoidChar.Config.ShowHashtag = false -- Show CloneID hashtag
  458.  
  459.  
  460. ////////////////////
  461. /// Key Bindings ///
  462. ////////////////////
  463.  
  464. // Note: All KEY_ enums can be found in https://wiki.garrysmod.com/page/Enums/KEY
  465.  
  466. VoidChar.Config.OpenMenuKey = KEY_F9 -- Opens the character menu ingame (set to KEY_NONE to disable)
  467. VoidChar.Config.OpenAdminMenuKey = KEY_F7 -- Opens the admin menu
  468.  
  469.  
  470. ///////////////////
  471. //// Audio ////
  472. ///////////////////
  473.  
  474. VoidChar.Config.ShouldPlayMusic = false -- Background music while in character menu
  475. VoidChar.Config.MusicURL = "https://www.bensound.com/royalty-free-music?download=summer" // URL of the music
  476. VoidChar.Config.MusicVolume = 0.3 -- The volume of the music (1 meaning 100% volume, 0.5 is 50% and 3 is 300%, etc.)
  477.  
  478. ////////////////////
  479. /// Background ///
  480. ////////////////////
  481.  
  482. VoidChar.Config.BackgroundPath = "sabino/menu/ba_poudlard.jpg" -- The background image
  483. VoidChar.Config.BackgroundCustom = {
  484. ["SelectionJob"] = Material("sabino/menu/ba_poudlard.jpg"),
  485. ["ChoixPersonnage"] = Material("sabino/menu/ba_poudlard.jpg"),
  486. ["ChoixFaction"] = Material("sabino/menu/ba_poudlard.jpg"),
  487. }
  488. VoidChar.Config.AutoResourceAddFile = false // The background will be sent to players using resource.AddFile. This will probably cause issues, so it's not recommmended.
  489.  
  490.  
  491. ///////////////////////////////
  492. //// Character Options ////
  493. ///////////////////////////////
  494.  
  495.  
  496. hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPInit", function ()
  497. VoidChar.Config.DefaultJobs = { -- Default whitelisted job(s) [IF USING FACTIONS, THEN YOU WILL NEED TO SET ATLEAST 1 FOR EACH FACTION!!!!]
  498. [TEAM_GRYFFONDOR1] = true,
  499. [TEAM_SERPENTARD1] = true,
  500. [TEAM_SERDAIGLE1] = true,
  501. [TEAM_POUSFSOUFFLE1] = true,
  502.  
  503. [TEAM_GRYFFONDOR2] = true,
  504. [TEAM_GRYFFONDOR3] = true,
  505. [TEAM_GRYFFONDOR4] = true,
  506. [TEAM_GRYFFONDOR5] = true,
  507.  
  508. [TEAM_SERPENTARD2] = true,
  509. [TEAM_SERPENTARD3] = true,
  510. [TEAM_SERPENTARD4] = true,
  511. [TEAM_SERPENTARD5] = true,
  512.  
  513. [TEAM_SERDAIGLE2] = true,
  514. [TEAM_SERDAIGLE3] = true,
  515. [TEAM_SERDAIGLE4] = true,
  516. [TEAM_SERDAIGLE5] = true,
  517.  
  518. [TEAM_POUSFSOUFFLE2] = true,
  519. [TEAM_POUSFSOUFFLE3] = true,
  520. [TEAM_POUSFSOUFFLE4] = true,
  521. [TEAM_POUSFSOUFFLE5] = true,
  522. }
  523.  
  524. VoidChar.Config.ULXRanks = { -- ["ULX/ServerGuard/xAdmin RANK"] -> jobs (if using xAdmin, enable xAdminSupport)
  525. ["founder"] = {
  526. [TEAM_AUROR] = true,
  527. [TEAM_MAGE_NOIR] = true,
  528. [TEAM_ELF] = true,
  529. [TEAM_FANTOME] = true,
  530. [TEAM_INFIRMIERE] = true,
  531. },
  532. ["superadmin"] = {
  533. [TEAM_AUROR] = true,
  534. [TEAM_MAGE_NOIR] = true,
  535. [TEAM_ELF] = true,
  536. [TEAM_FANTOME] = true,
  537. [TEAM_INFIRMIERE] = true,
  538. },
  539. ["moderateur"] = {
  540. [TEAM_AUROR] = true,
  541. [TEAM_MAGE_NOIR] = true,
  542. [TEAM_ELF] = true,
  543. [TEAM_FANTOME] = true,
  544. [TEAM_INFIRMIERE] = true,
  545. },
  546. ["helpeur"] = {
  547. [TEAM_AUROR] = true,
  548. [TEAM_MAGE_NOIR] = true,
  549. [TEAM_ELF] = true,
  550. [TEAM_FANTOME] = true,
  551. [TEAM_INFIRMIERE] = true,
  552. },
  553. ["premium"] = {
  554. [TEAM_AUROR] = true,
  555. [TEAM_MAGE_NOIR] = true,
  556. [TEAM_ELF] = true,
  557. [TEAM_FANTOME] = true,
  558. [TEAM_INFIRMIERE] = true,
  559. }
  560. }
  561. end)
  562.  
  563. VoidChar.Config.WhitelistRanks = { -- Rank(s) that can access any job.
  564. ["admin"] = true,
  565. }
  566.  
  567. VoidChar.Config.WhitelistSteamID = { -- SteamID(s) that can access any job.
  568. ["STEAM_0:0:0"] = true,
  569. }
  570.  
  571. VoidChar.Config.AdminMenu = { -- This will determine who can access the admin menu and save NPCs.
  572. ["moderateur"] = true,
  573. ["superadmin"] = true,
  574. ["founder"] = true,
  575. }
  576.  
  577.  
  578. VoidChar.Config.CharacterRank = { -- Reserved Slots
  579. ["premium1"] = {
  580. name = "Premium",
  581. customCheck = function(ply)
  582. return table.HasValue({"founder","superadmin","moderateur","helpeur","animateur","premium"}, ply:GetUserGroup())
  583. end
  584. },
  585. ["premium2"] = {
  586. name = "Premium",
  587. customCheck = function(ply)
  588. return table.HasValue({"founder","superadmin","moderateur","helpeur","animateur","premium"}, ply:GetUserGroup())
  589. end
  590. }
  591. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement