SHARE
TWEET

Untitled

a guest Sep 22nd, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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: 76561198037659692
  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 = true -- Enable selection bodygroup option
  48.  
  49. VoidChar.Config.DefaultMoney = 0 -- Starting money for each character
  50. VoidChar.Config.MaxCharacters = 5 -- Max characters per person (MAX POSSIBLE VALUE IS 5)
  51. VoidChar.Config.Wait = 5 -- Delay between changing characters
  52.  
  53. VoidChar.Config.CharacterCreateCooldown = 5 // Cooldown in minutes for creating characters
  54. VoidChar.Config.JobSwitchCooldown = 1 // Cooldown in minutes between changing jobs
  55.  
  56. VoidChar.Config.MinNameLength = 1 -- 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 = false -- Restrict changing jobs in f4 menu
  65. VoidChar.Config.RestrictRPNameChange = false -- 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 = 0 -- 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 = false -- 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.     ["UNSC"] = {
  91.       [TEAM_SOLDAT1] = true,
  92.       [TEAM_SOLDAT2] = true,
  93.       [TEAM_SOLDAT3] = true,
  94.       [TEAM_SOLDATM1] = true,
  95.       [TEAM_SOLDATM2] = true,
  96.       [TEAM_SOLDATM3] = true,
  97.       [TEAM_SOLDATP1] = true,
  98.       [TEAM_SOLDATP2] = true,
  99.       [TEAM_SOLDATL1] = true,
  100.       [TEAM_SOLDATL2] = true,
  101.       [TEAM_SOLDATL3] = true,
  102.       [TEAM_SOLDATL12] = true,
  103.       [TEAM_SPARTAN1] = true,
  104.       [TEAM_SPARTAN2] = true,
  105.       [TEAM_SPARTAN10] = true
  106.      
  107.     },
  108.    
  109.     ["Alliance Covenante"] = {
  110.       [TEAM_GROGNARD1] = true,
  111.       [TEAM_GROGNARD2] = true,
  112.       [TEAM_GROGNARD3] = true,
  113.       [TEAM_GROGNARDA1] = true,
  114.       [TEAM_GROGNARDA2] = true,
  115.       [TEAM_GROGNARDA3] = true,
  116.       [TEAM_ELITE1] = true,
  117.       [TEAM_ELITE2] = true,
  118.       [TEAM_ELITE3] = true,
  119.       [TEAM_ELITE12] = true,
  120.       [TEAM_ELITE13] = true,
  121.       [TEAM_ELITEP1] = true,
  122.       [TEAM_ELITEP2] = true,
  123.       [TEAM_BRUTE1] = true,
  124.       [TEAM_BRUTE2] = true,
  125.       [TEAM_BRUTE3] = true,
  126.       [TEAM_CHASSEUR1] = true,
  127.       [TEAM_CHASSEUR2] = true
  128.      
  129.      
  130.     },
  131.    
  132.     ["Parasite"] = {
  133.       [TEAM_PARASITE_HUMAIN] = true,
  134.       [TEAM_PARASITE_PILOTE] = true,
  135.       [TEAM_PARASITE_ELITE] = true,
  136.       [TEAM_PARASITE_BRUTE] = true,
  137.       [TEAM_PARASITE_TANK] = true
  138.     },
  139.    
  140.   }
  141.  
  142. end)
  143.  
  144. VoidChar.Config.FactionIcons = { -- if using BWhitelist factions then not needed
  145.   ["UNSC"] = "https://m0uka.xyz/cdn/voidchar/faction1.png",
  146.   ["Alliance Covenante"] = "https://m0uka.xyz/cdn/voidchar/faction2.png",
  147.   ["Parasite"] = "https://m0uka.xyz/cdn/voidchar/faction2.png",
  148. }
  149. VoidChar.Config.FactionDescription = { -- if using BWhitelist factions then not needed
  150.   ["UNSC"] = "The Galactic Republic, commonly known as the Republic and remembered as the Old Republic, was a federal parliamentary republic comprising thousands of worlds spread across the galaxy.",
  151.   ["Alliance Covenante"] = "The Galactic Imperium also called the Imperial Remnant by some, was the strongest military force and government in the Galaxy especially after the Shrike War. It was created by Emperor Ramsay in 34 ABY who led the Imperium for over ten years. He was succeeded by Supreme Commander Patton.",
  152.   ["Parasite"] = "The Galactic Republic, commonly known as the Republic and remembered as the Old Republic, was a federal parliamentary republic comprising thousands of worlds spread across the galaxy.",
  153.   }
  154.  
  155. // THIS IS A PERCENTAGE OF THE ONLINE PLAYERS ON THE SERVER
  156. // EXAMPLE: YOU HAVE 20 PEOPLE ON YOUR SERVER, 10 IS THE LIMIT FOR THE FACTION IF USING 50%
  157. // Set to 0 or make the table empty to disable
  158. VoidChar.Config.FactionMaxPlayerPercent = {
  159.   ["UNSC"] = 50,
  160.   ["Alliance Covenante"] = 50,
  161.   ["Parasite"] = 50
  162. }
  163.  
  164.  
  165.  
  166. //////////////////////////
  167. ///      Job NPCs      ///
  168. //////////////////////////
  169.  
  170. hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPJobNPCsInit", function ()
  171.  
  172.     // Custom Job NPCs, use the command `voidchar_setjobnpc [npc type]` while looking on a Job NPC to change its display name and available jobs
  173.   // Whitelist still applies
  174.   // You don't need to use a NPC model, any model will do (so you can set a prop)
  175.     // Example: `voidchar_setjobnpc normalJobs`
  176.     VoidChar.Config.JobNPCs = {
  177.         ["normalJobs"] = {
  178.             displayName = "Employment Office",
  179.             npcModel = "models/breen.mdl",
  180.       changeCost = 5000,
  181.             jobs = {
  182.                 [TEAM_CITIZEN] = true,
  183.                 [TEAM_MEDIC] = true,
  184.                 [TEAM_POLICE] = true
  185.             }
  186.         },
  187.         ["crimeJobs"] = {
  188.             displayName = "Illegal Jobs",
  189.             npcModel = "models/Eli.mdl",
  190.       changeCost = 25000,
  191.             jobs = {
  192.                 [TEAM_GANG] = true,
  193.                 [TEAM_MOB] = true
  194.             }
  195.         }
  196.     }
  197.  
  198. end)
  199.  
  200.  
  201.  
  202. //////////////////////////////////
  203. ///        Numbered IDs        ///
  204. //////////////////////////////////
  205.  
  206. // Note: This isn't necessarily a CloneID. You can use it in PoliceRP, MilitaryRP, etc..
  207. // Clone-ID must be checked in Character Creation (if ForceCloneID is disabled)
  208.  
  209. VoidChar.Config.EnableCloneID = false -- 4-digit id will be added after name (example: John Doe #1001)
  210. VoidChar.Config.CloneID = true -- The IDs will be numbered in order - starting with 1001
  211. VoidChar.Config.ForceCloneID = false -- Force CloneID for all characters (no checkbox will be available)
  212.  
  213. VoidChar.Config.DisplayAsSuffix = false -- Display CloneID before name
  214. VoidChar.Config.ShowHashtag = true -- Show CloneID hashtag
  215.  
  216.  
  217. ////////////////////
  218. /// Key Bindings ///
  219. ////////////////////
  220.  
  221. // Note: All KEY_ enums can be found in https://wiki.garrysmod.com/page/Enums/KEY
  222.  
  223. VoidChar.Config.OpenMenuKey = KEY_F6 -- Opens the character menu ingame (set to KEY_NONE to disable)
  224. VoidChar.Config.OpenAdminMenuKey = KEY_F7 -- Opens the admin menu
  225.  
  226.  
  227. ///////////////////
  228. ////   Audio   ////
  229. ///////////////////
  230.  
  231. VoidChar.Config.ShouldPlayMusic = true -- Background music while in character menu
  232. VoidChar.Config.MusicURL = "https://www.youtube.com/watch?v=rs6Y4kZ8qtw" // URL of the music
  233. VoidChar.Config.MusicVolume = 0.3 -- The volume of the music (1 meaning 100% volume, 0.5 is 50% and 3 is 300%, etc.)
  234.  
  235. ////////////////////
  236. ///  Background  ///
  237. ////////////////////
  238.  
  239. VoidChar.Config.BackgroundPath = "voidchar/bg.png" -- The background image
  240.  
  241. VoidChar.Config.AutoResourceAddFile = false // The background will be sent to players using resource.AddFile. This will probably cause issues, so it's not recommmended.
  242.  
  243.  
  244. ///////////////////////////////
  245. ////   Character Options   ////
  246. ///////////////////////////////
  247.  
  248.  
  249. hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPInit", function ()
  250.   VoidChar.Config.DefaultJobs = { -- Default whitelisted job(s) [IF USING FACTIONS, THEN YOU WILL NEED TO SET ATLEAST 1 FOR EACH FACTION!!!!]
  251.     [Choix de faction] = true,
  252.   }
  253.  
  254.   VoidChar.Config.ULXRanks = { -- ["ULX/ServerGuard/xAdmin RANK"] -> jobs (if using xAdmin, enable xAdminSupport)
  255.     ["superadmin"] = {
  256.       [TEAM_ADMIN] = true,
  257.     }
  258.   }
  259. end)
  260.  
  261. VoidChar.Config.WhitelistRanks = { -- Rank(s) that can access any job.
  262.   ["admin"] = true,
  263. }
  264.  
  265. VoidChar.Config.WhitelistSteamID = { -- SteamID(s) that can access any job.
  266.   ["STEAM_0:0:0"] = true,
  267. }
  268.  
  269. VoidChar.Config.AdminMenu = { -- This will determine who can access the admin menu and save NPCs.
  270.   ["superadmin"] = true,
  271. }
  272.  
  273. VoidChar.Config.CharacterRank = { -- Reserved Slots
  274.   ["V.I.P"] = {
  275.     name = "V.I.P",
  276.     customCheck = function(ply)
  277.       return table.HasValue({"V.I.P"}, ply:GetUserGroup())
  278.     end
  279.   },
  280.   ["admin"] = {
  281.     name = "Administration",
  282.     customCheck = function(ply)
  283.       return table.HasValue({"superadmin"}, ply:GetUserGroup())
  284.     end
  285.   }
  286. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top