Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.99 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: 76561198079712040
  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 = "en" -- 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 = true -- True if you want to use bWhitelist instead (disables script's default whitelist)
  42. VoidChar.Config.ItemStoreSupport = true -- Support ItemStore (separate inventories)
  43. VoidChar.Config.LevelSystemSupport = false -- Support vrondakis Leveling system (separate XP)
  44. VoidChar.Config.CharacterClothesSupport = false -- Support Character & Clothes addon (separate clothing)
  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. VoidChar.Config.BodygroupChangeInNPCs = true -- Enable bodygroup option in Job NPC and in Identity NPC
  49.  
  50. VoidChar.Config.DefaultMoney = 100 -- Starting money for each character
  51. VoidChar.Config.MaxCharacters = 5 -- Max characters per person (MAX POSSIBLE VALUE IS 5)
  52. VoidChar.Config.Wait = 5 -- Delay between changing characters
  53.  
  54. VoidChar.Config.CharacterCreateCooldown = 0 // Cooldown in minutes for creating characters
  55. VoidChar.Config.JobSwitchCooldown = 5 // Cooldown in minutes between changing jobs
  56.  
  57. VoidChar.Config.MinNameLength = 7 -- Minimum length for a players name
  58. VoidChar.Config.MaxNameLength = 20 -- Maximum length for a players name
  59.  
  60. VoidChar.Config.RestrictedWords = {} -- Restricted words in a name
  61.  
  62. VoidChar.Config.ForceTwoNames = false -- Force players to enter first name and last name
  63. VoidChar.Config.RestrictThreeNames = false -- Restrict 3 words in a name
  64.  
  65. VoidChar.Config.RestrictF4Changing = true -- Restrict changing jobs in f4 menu
  66. VoidChar.Config.RestrictRPNameChange = true -- Restrict changing the RPName using /name
  67.  
  68. VoidChar.Config.NeedToChangeFromOnlyInJobNPC = true -- Need to change from works only in Job NPC, so you can keep using the character using the selection menu
  69.  
  70. VoidChar.Config.ForceCharSelectionOnDelete = true -- Force changing the character when the current character gets deleted by an admin
  71.  
  72. VoidChar.Config.JobChangeCost = 500 -- Cost for changing the job, for DEFAULT Job NPCs (set to 0 for free)
  73. VoidChar.Config.IdentityChangeCost = 750 -- Cost for changing your model and/or name (set to 0 for free)
  74.  
  75. VoidChar.Config.DisableCreationWhitelist = false -- Only allow creating characters with default jobs (whitelist won't apply for creating characters)
  76. VoidChar.Config.EnableUsingNonWhitelistedJobs = true -- Enable using non-whitelisted jobs (use this if you want to not use whitelist, just editing the characters, [!setcharjob])
  77.  
  78. VoidChar.Config.ModelSequences = {} -- Sequences (animations/poses) for playermodels in selection menu. If empty, none will be set.
  79. // Example sequences: {"pose_standing_01", "pose_standing_02"}
  80.  
  81.  
  82.  
  83. ////////////////////////////
  84. /// Factions ///
  85. ////////////////////////////
  86.  
  87. VoidChar.Config.FactionSystem = false -- Use faction system, where you need to select a faction before creating a character
  88.  
  89. VoidChar.Config.UseBWhitelistFactions = false -- Use bWhitelist factions
  90. // NOTE: You need to disable showing of the popup and chat/console command.
  91. // (https://m0uka.xyz/u/images/png/liFAc.png)
  92.  
  93. VoidChar.Config.DifferentFactionJobSwitch = false -- Allow to switch jobs using the Job NPC to different faction jobs (faction will NOT be changed)
  94.  
  95. hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPFactionInit", function ()
  96.  
  97. // Faction system: Up to 4 factions allowed
  98. // Leave empty when using BWhitelistFactions!!!
  99. VoidChar.Config.Factions = { -- Use this if VoidChar.Config.FactionSystem is enabled -> structure: faction name = [table of jobs] (whitelist will still apply!)
  100. ["CIVILIAN"] = {
  101. [TEAM_CITIZEN] = true
  102. },
  103.  
  104. ["IMPERIAL REMNANT"] = {
  105. [TEAM_HOBO] = true,
  106. [TEAM_MEDIC] = true
  107. },
  108. }
  109.  
  110. end)
  111.  
  112. VoidChar.Config.FactionIcons = { -- if using BWhitelist factions then not needed
  113. ["GALACTIC REPUBLIC"] = "https://m0uka.xyz/cdn/voidchar/faction1.png",
  114. ["GALACTIC IMPERIUM"] = "https://m0uka.xyz/cdn/voidchar/faction2.png",
  115. }
  116. VoidChar.Config.FactionDescription = { -- if using BWhitelist factions then not needed
  117. ["GALACTIC REPUBLIC"] = "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.",
  118. ["GALACTIC IMPERIUM"] = "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.",
  119. }
  120.  
  121. // THIS IS A PERCENTAGE OF THE ONLINE PLAYERS ON THE SERVER
  122. // EXAMPLE: YOU HAVE 20 PEOPLE ON YOUR SERVER, 10 IS THE LIMIT FOR THE FACTION IF USING 50%
  123. // Set to 0 or make the table empty to disable
  124. VoidChar.Config.FactionMaxPlayerPercent = {
  125. ["GALACTIC REPUBLIC"] = 0,
  126. ["GALACTIC IMPERIUM"] = 0
  127. }
  128.  
  129.  
  130.  
  131. //////////////////////////
  132. /// Job NPCs ///
  133. //////////////////////////
  134.  
  135. hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPJobNPCsInit", function ()
  136.  
  137. // Custom Job NPCs, use the command `voidchar_setjobnpc [npc type]` while looking on a Job NPC to change its display name and available jobs
  138. // Example: `voidchar_setjobnpc normalJobs`
  139. // NOTE: You can also use props instead of playermodels
  140. VoidChar.Config.JobNPCs = {
  141. ["normalJobs"] = {
  142. displayName = "Employment Office",
  143. npcModel = "models/breen.mdl",
  144. changeCost = 5000,
  145. jobs = {
  146. [TEAM_CITIZEN] = true,
  147. [TEAM_MEDIC] = true,
  148. [TEAM_POLICE] = true,
  149. }
  150. },
  151. ["crimeJobs"] = {
  152. displayName = "Illegal Jobs",
  153. npcModel = "models/Eli.mdl",
  154. changeCost = 25000,
  155. jobs = {
  156. [TEAM_GANG] = true,
  157. [TEAM_MOB] = true,
  158. }
  159. }
  160. }
  161.  
  162. end)
  163.  
  164.  
  165.  
  166. //////////////////////////////////
  167. /// Numbered IDs ///
  168. //////////////////////////////////
  169.  
  170. // Note: This isn't necessarily a CloneID. You can use it in PoliceRP, MilitaryRP, etc..
  171. // Clone-ID must be checked in Character Creation (if ForceCloneID is disabled)
  172.  
  173. VoidChar.Config.EnableCloneID = false -- 4-digit id will be added after name (example: John Doe #1001)
  174. VoidChar.Config.CloneID = true -- The IDs will be numbered in order - starting with 1001
  175. VoidChar.Config.ForceCloneID = false -- Force CloneID for all characters (no checkbox will be available)
  176.  
  177. VoidChar.Config.DisplayAsSuffix = false -- Display CloneID after name (ignore the variable name, its display as prefix)
  178. VoidChar.Config.ShowHashtag = false -- Show CloneID hashtag
  179.  
  180.  
  181.  
  182. ////////////////////
  183. /// Key Bindings ///
  184. ////////////////////
  185.  
  186. // Note: All KEY_ enums can be found in https://wiki.garrysmod.com/page/Enums/KEY
  187.  
  188. VoidChar.Config.OpenMenuKey = KEY_F6 -- Opens the character menu ingame (set to KEY_NONE to disable)
  189. VoidChar.Config.OpenAdminMenuKey = KEY_F7 -- Opens the admin menu
  190.  
  191.  
  192.  
  193. ///////////////////
  194. //// Audio ////
  195. ///////////////////
  196.  
  197. VoidChar.Config.ShouldPlayMusic = false -- Background music while in character menu
  198. VoidChar.Config.MusicURL = "https://www.bensound.com/royalty-free-music?download=summer" // URL of the music
  199. VoidChar.Config.MusicVolume = 0.3 -- The volume of the music (1 meaning 100% volume, 0.5 is 50% and 3 is 300%, etc.)
  200.  
  201.  
  202.  
  203. ////////////////////
  204. /// Background ///
  205. ////////////////////
  206.  
  207. VoidChar.Config.BackgroundPath = "voidchar/bg.png" -- The background image
  208. VoidChar.Config.AutoResourceAddFile = false // The background will be sent to players using resource.AddFile. This will probably cause issues, so it's not recommmended.
  209.  
  210.  
  211.  
  212. ///////////////////////////////
  213. //// Character Options ////
  214. ///////////////////////////////
  215.  
  216.  
  217. hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPInit", function ()
  218. VoidChar.Config.DefaultJobs = { -- Default whitelisted job(s) [IF USING FACTIONS, THEN YOU WILL NEED TO SET ATLEAST 1 FOR EACH FACTION!!!!]
  219. [TEAM_CITIZEN] = true,
  220. }
  221.  
  222. VoidChar.Config.ULXRanks = { -- ["ULX/ServerGuard/xAdmin RANK"] -> jobs (if using xAdmin, enable xAdminSupport)
  223. ["superadmin"] = {
  224. [TEAM_CITIZEN] = true,
  225. }
  226. }
  227. end)
  228.  
  229. VoidChar.Config.WhitelistRanks = { -- Rank(s) that can access any job.
  230. ["admin"] = true,
  231. }
  232.  
  233. VoidChar.Config.WhitelistSteamID = { -- SteamID(s) that can access any job.
  234. ["STEAM_0:0:0"] = true,
  235. }
  236.  
  237. VoidChar.Config.AdminMenu = { -- This will determine who can access the admin menu and save NPCs.
  238. ["founder"] = true,
  239. }
  240.  
  241.  
  242. VoidChar.Config.CharacterRank = { -- Reserved Slots
  243. ["operator"] = {
  244. name = "Donator Only SET RANKS",
  245. customCheck = function(ply)
  246. return table.HasValue({"operator"}, ply:GetUserGroup())
  247. end
  248. },
  249. ["admin"] = {
  250. name = "Staff Only",
  251. customCheck = function(ply)
  252. return table.HasValue({"senior-administrator", "head-administrator", "founder", "moderator", "trial-staff", "administrator"}, ply:GetUserGroup())
  253. end
  254. }
  255. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement