Advertisement
Guest User

Still Error VC

a guest
Nov 17th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.96 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: 76561198087754927
  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 = "de" -- 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 = false -- Support vrondakis Leveling system (separate XP)
  44. VoidChar.Config.CharacterClothesSupport = false -- Support Character & Clothes addon (separate clothing)
  45. VoidChar.Config.xAdminSupport = true -- 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 = 1000 -- Starting money for each character
  50. VoidChar.Config.MaxCharacters = 4 -- Max characters per person (MAX POSSIBLE VALUE IS 5)
  51. VoidChar.Config.Wait = 60 -- Delay between changing characters
  52.  
  53. VoidChar.Config.CharacterCreateCooldown = 1 // Cooldown in minutes for creating characters
  54. VoidChar.Config.JobSwitchCooldown = 5 // Cooldown in minutes between changing jobs
  55.  
  56. VoidChar.Config.MinNameLength = 5 -- Minimum length for a players name
  57. VoidChar.Config.MaxNameLength = 25 -- Maximum length for a players name
  58.  
  59. VoidChar.Config.RestrictedWords = {"Hitler", "Jude", "Stalin", "Nigger", "Jew", "Jewsef", "Kanacke"} -- 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 = false -- Restrict changing the RPName using /name
  66.  
  67. VoidChar.Config.ForceCharSelectionOnDelete = true -- Force changing the character when the current character gets deleted by an admin
  68.  
  69. VoidChar.Config.JobChangeCost = 0 -- Cost for changing the job, for DEFAULT Job NPCs (set to 0 for free)
  70. VoidChar.Config.IdentityChangeCost = 2000 -- Cost for changing your model and/or name (set to 0 for free)
  71.  
  72. VoidChar.Config.DisableCreationWhitelist = false -- Only allow creating characters with default jobs (whitelist won't apply for creating characters)
  73. VoidChar.Config.EnableUsingNonWhitelistedJobs = true -- Enable using non-whitelisted jobs (use this if you want to not use whitelist, just editing the characters, [!setcharjob])
  74.  
  75. VoidChar.Config.ModelSequences = {} -- Sequences (animations/poses) for playermodels in selection menu. If empty, none will be set.
  76. // Example sequences: {"pose_standing_01", "pose_standing_02"}
  77.  
  78.  
  79.  
  80. ////////////////////////////
  81. /// Factions ///
  82. ////////////////////////////
  83.  
  84. VoidChar.Config.FactionSystem = true -- Use faction system, where you need to select a faction before creating a character
  85.  
  86. VoidChar.Config.UseBWhitelistFactions = false -- Use bWhitelist factions
  87. // NOTE: You need to disable showing of the popup and chat/console command.
  88. // (https://m0uka.xyz/u/images/png/liFAc.png)
  89.  
  90. VoidChar.Config.DifferentFactionJobSwitch = false -- Allow to switch jobs using the Job NPC to different faction jobs (faction will NOT be changed)
  91.  
  92. hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPFactionInit", function ()
  93.  
  94. // Faction system: Up to 4 factions allowed
  95. // Leave empty when using BWhitelistFactions!!!
  96. VoidChar.Config.Factions = { -- Use this if VoidChar.Config.FactionSystem is enabled -> structure: faction name = [table of jobs] (whitelist will still apply!)
  97. ["JEDI ORDEN"] = {
  98. [TEAM_SITHKIND] = true
  99. },
  100.  
  101. ["SITH IMPERIUM"] = {
  102. [TEAM_JEDIKIND] = true
  103. },
  104.  
  105. ["EWIGES IMPERIUM"] = {
  106. [TEAM_ZAKUULRI] = true
  107. },
  108. }
  109.  
  110. end)
  111.  
  112. VoidChar.Config.FactionIcons = { -- if using BWhitelist factions then not needed
  113. ["JEDI ORDEN"] = "https://m0uka.xyz/cdn/voidchar/faction1.png",
  114. ["SITH IMPERIUM"] = "https://m0uka.xyz/cdn/voidchar/faction1.png",
  115. ["EWIGES IMPERIUM"] = "https://m0uka.xyz/cdn/voidchar/faction1.png",
  116. }
  117. VoidChar.Config.FactionDescription = { -- if using BWhitelist factions then not needed
  118. ["JEDI ORDEN"] = "Der Jedi-Orden war ein Zusammenschluss machtempfänglicher Individuen, die der Hellen Seite der Macht folgten und den Frieden in der Galaxis zu wahren suchten.",
  119. ["SITH IMPERIUM"] = "Das alte Sith-Imperium wurde nach der hundertjährigen Dunkelheit von exilierten dunklen Jedi gegründet.",
  120. ["EWIGES IMPERIUM"] = "Das Ewige Imperium, auch als das Imperium von Zakuul bezeichnet, war ein Reich, das zu einem unbekannten Zeitpunkt nach dem Neuen Galaktischen Krieg sowohl das Sith-Imperium als auch die Galaktische Republik angriff und ihnen schwere Verluste zufügte.",
  121. }
  122.  
  123. // THIS IS A PERCENTAGE OF THE ONLINE PLAYERS ON THE SERVER
  124. // EXAMPLE: YOU HAVE 20 PEOPLE ON YOUR SERVER, 10 IS THE LIMIT FOR THE FACTION IF USING 50%
  125. // Set to 0 or make the table empty to disable
  126. VoidChar.Config.FactionMaxPlayerPercent = {
  127. ["JEDI ORDEN"] = 0,
  128. ["SITH IMPERIUM"] = 0,
  129. ["EWIGES IMPERIUM"] = 0
  130. }
  131.  
  132.  
  133.  
  134. //////////////////////////
  135. /// Job NPCs ///
  136. //////////////////////////
  137.  
  138. hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPJobNPCsInit", function ()
  139.  
  140. // Custom Job NPCs, use the command `voidchar_setjobnpc [npc type]` while looking on a Job NPC to change its display name and available jobs
  141. // Example: `voidchar_setjobnpc normalJobs`
  142. // NOTE: You can also use props instead of playermodels
  143. VoidChar.Config.JobNPCs = {
  144. ["normalJobs"] = {
  145. displayName = "Employment Office",
  146. npcModel = "models/breen.mdl",
  147. changeCost = 5000,
  148. jobs = {
  149. [TEAM_CITIZEN] = true,
  150. [TEAM_MEDIC] = true,
  151. [TEAM_POLICE] = true,
  152. }
  153. },
  154. ["crimeJobs"] = {
  155. displayName = "Illegal Jobs",
  156. npcModel = "models/Eli.mdl",
  157. changeCost = 25000,
  158. jobs = {
  159. [TEAM_GANG] = true,
  160. [TEAM_MOB] = true,
  161. }
  162. }
  163. }
  164.  
  165. end)
  166.  
  167.  
  168.  
  169. //////////////////////////////////
  170. /// Numbered IDs ///
  171. //////////////////////////////////
  172.  
  173. // Note: This isn't necessarily a CloneID. You can use it in PoliceRP, MilitaryRP, etc..
  174. // Clone-ID must be checked in Character Creation (if ForceCloneID is disabled)
  175.  
  176. VoidChar.Config.EnableCloneID = true -- 4-digit id will be added after name (example: John Doe #1001)
  177. VoidChar.Config.CloneID = true -- The IDs will be numbered in order - starting with 1001
  178. VoidChar.Config.ForceCloneID = false -- Force CloneID for all characters (no checkbox will be available)
  179.  
  180. VoidChar.Config.DisplayAsSuffix = false -- Display CloneID after name (ignore the variable name, its display as prefix)
  181. VoidChar.Config.ShowHashtag = true -- Show CloneID hashtag
  182.  
  183.  
  184.  
  185. ////////////////////
  186. /// Key Bindings ///
  187. ////////////////////
  188.  
  189. // Note: All KEY_ enums can be found in https://wiki.garrysmod.com/page/Enums/KEY
  190.  
  191. VoidChar.Config.OpenMenuKey = KEY_F6 -- Opens the character menu ingame (set to KEY_NONE to disable)
  192. VoidChar.Config.OpenAdminMenuKey = KEY_F7 -- Opens the admin menu
  193.  
  194.  
  195.  
  196. ///////////////////
  197. //// Audio ////
  198. ///////////////////
  199.  
  200. VoidChar.Config.ShouldPlayMusic = true -- Background music while in character menu
  201. VoidChar.Config.MusicURL = "https://www.youtube.com/watch?v=DdKylTkcyY4" // URL of the music
  202. VoidChar.Config.MusicVolume = 0.2 -- The volume of the music (1 meaning 100% volume, 0.5 is 50% and 3 is 300%, etc.)
  203.  
  204.  
  205.  
  206. ////////////////////
  207. /// Background ///
  208. ////////////////////
  209.  
  210. VoidChar.Config.BackgroundPath = "voidchar/bg.png" -- The background image
  211. VoidChar.Config.AutoResourceAddFile = false // The background will be sent to players using resource.AddFile. This will probably cause issues, so it's not recommmended.
  212.  
  213.  
  214.  
  215. ///////////////////////////////
  216. //// Character Options ////
  217. ///////////////////////////////
  218.  
  219.  
  220. hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPInit", function ()
  221. VoidChar.Config.DefaultJobs = { -- Default whitelisted job(s) [IF USING FACTIONS, THEN YOU WILL NEED TO SET ATLEAST 1 FOR EACH FACTION!!!!]
  222. [TEAM_CITIZEN] = true,
  223. }
  224.  
  225. VoidChar.Config.ULXRanks = { -- ["ULX/ServerGuard/xAdmin RANK"] -> jobs (if using xAdmin, enable xAdminSupport)
  226. ["superadmin"] = {
  227. [TEAM_GUN] = true,
  228. }
  229. }
  230. end)
  231.  
  232. VoidChar.Config.WhitelistRanks = { -- Rank(s) that can access any job.
  233. ["Inhaber"] = true,
  234. ["Head-Admin"] = true,
  235. ["Developer"] = true,
  236. }
  237.  
  238. VoidChar.Config.WhitelistSteamID = { -- SteamID(s) that can access any job.
  239. ["STEAM_0:0:0"] = true,
  240. }
  241.  
  242. VoidChar.Config.AdminMenu = { -- This will determine who can access the admin menu and save NPCs.
  243. ["Inhaber"] = true,
  244. ["Head-Admin"] = true,
  245. ["Developer"] = true,
  246. }
  247.  
  248.  
  249. VoidChar.Config.CharacterRank = { -- Reserved Slots
  250. ["operator"] = {
  251. name = "Moderator Only",
  252. customCheck = function(ply)
  253. return table.HasValue({"operator"}, ply:GetUserGroup())
  254. end
  255. },
  256. ["admin"] = {
  257. name = "Admin Only",
  258. customCheck = function(ply)
  259. return table.HasValue({"admin"}, ply:GetUserGroup())
  260. end
  261. }
  262. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement