Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.63 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: 76561198137249403
  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 = 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 = 4000 -- Starting money for each character
  50. VoidChar.Config.MaxCharacters = 5 -- Max characters per person (MAX POSSIBLE VALUE IS 5)
  51. VoidChar.Config.Wait = 10 -- Delay between changing characters
  52.  
  53. VoidChar.Config.CharacterCreateCooldown = 0 // Cooldown in minutes for creating characters
  54. VoidChar.Config.JobSwitchCooldown = 0 // Cooldown in minutes between changing jobs
  55.  
  56. VoidChar.Config.MinNameLength = 3 -- 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 = 25000 -- Cost for changing the job, for DEFAULT Job NPCs (set to 0 for free)
  68. VoidChar.Config.IdentityChangeCost = 25000 -- Cost for changing your model and/or name (set to 0 for free)
  69.  
  70. VoidChar.Config.DisableCreationWhitelist = false -- Only allow creating characters with default jobs (whitelist won't apply for creating characters)
  71.  
  72. VoidChar.Config.ModelSequences = {} -- Sequences (animations/poses) for playermodels in selection menu. If empty, none will be set.
  73. // Example sequences: {"pose_standing_01", "pose_standing_02"}
  74.  
  75. ////////////////////////////
  76. /// Factions ///
  77. ////////////////////////////
  78.  
  79. VoidChar.Config.FactionSystem = true -- Use faction system, where you need to select a faction before creating a character
  80.  
  81. VoidChar.Config.UseBWhitelistFactions = false -- Use bWhitelist factions
  82. // NOTE: You need to disable showing of the popup and chat/console command.
  83. // (https://m0uka.xyz/u/images/png/liFAc.png)
  84.  
  85. VoidChar.Config.DifferentFactionJobSwitch = false -- Allow to switch jobs using the Job NPC to different faction jobs (faction will NOT be changed)
  86.  
  87. hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPFactionInit", function ()
  88.  
  89. // Faction system: Up to 4 factions allowed
  90. // Leave empty when using BWhitelistFactions!!!
  91. VoidChar.Config.Factions = { -- Use this if VoidChar.Config.FactionSystem is enabled -> structure: faction name = [table of jobs] (whitelist will still apply!)
  92. [" "] = {
  93. [TEAM_JEDIANWAERTER] = true,
  94. [TEAM_JEDIHUETER] = true,
  95. [TEAM_JEDIWAECHTER] = true,
  96. [TEAM_JEDIGELEHRTER] = true,
  97. [TEAM_JEDISCHATTEN] = true,
  98. [TEAM_JEDIKAMPFMEISTER] = true,
  99. [TEAM_BARSENTHOR] = true,
  100. [TEAM_SATELESHAN] = true,
  101. [TEAM_JENSYN] = true,
  102. [TEAM_JARIC] = true,
  103. [TEAM_TOLBRAGA] = true,
  104. [TEAM_OTEG] = true,
  105. [TEAM_KIRACARSEN] = true,
  106. [TEAM_ASHARA] = true,
  107. [TEAM_ORGUSDIN] = true,
  108. [TEAM_BELA] = true,
  109. [TEAM_ORIC] = true,
  110. [TEAM_REPSOLDAT1] = true,
  111. [TEAM_QYZENFESS] = true,
  112. [TEAM_THERON] = true,
  113. [TEAM_DOC] = true,
  114. [TEAM_JACE] = true,
  115. [TEAM_ARIC] = true,
  116. [TEAM_JEDIGEHEIMBUND] = true
  117. },
  118.  
  119. [" "] = {
  120. [TEAM_ANWAERTER] = true,
  121. [TEAM_GRAUERJEDI] = true,
  122. [TEAM_REVAN] = true,
  123. [TEAM_SCHMUGGLER] = true,
  124. [TEAM_KOPFGELDJAEGER] = true,
  125. [TEAM_SHAEVIZLA] = true,
  126. [TEAM_ROTEKLINGE] = true,
  127. [TEAM_WOOKIE] = true,
  128. [TEAM_HKEINHEIT] = true,
  129. [TEAM_JAWA] = true,
  130. [TEAM_DROIDE] = true
  131. },
  132.  
  133. [" "] = {
  134. [TEAM_SITHANWAERTER] = true,
  135. [TEAM_SITHJUGGERNAUT] = true,
  136. [TEAM_SITHMARODEUR] = true,
  137. [TEAM_SITHHEXER] = true,
  138. [TEAM_SITHATTENTAETER] = true,
  139. [TEAM_STIMME] = true,
  140. [TEAM_ZORN] = true,
  141. [TEAM_VITIATE] = true,
  142. [TEAM_MALGUS] = true,
  143. [TEAM_BARAS] = true,
  144. [TEAM_GRATHAN] = true,
  145. [TEAM_MARR] = true,
  146. [TEAM_ATROXA] = true,
  147. [TEAM_EXAL] = true,
  148. [TEAM_JADUS] = true,
  149. [TEAM_THANATON] = true,
  150. [TEAM_LANA] = true,
  151. [TEAM_NOX] = true,
  152. [TEAM_XALEC] = true,
  153. [TEAM_IMPSOLDAT1] = true,
  154. [TEAM_KHEMVAL] = true
  155. },
  156. }
  157.  
  158. end)
  159.  
  160. VoidChar.Config.FactionIcons = { -- if using BWhitelist factions then not needed
  161. [" "] = "https://i.imgur.com/wKjIpxD.png",
  162. [" "] = "https://i.imgur.com/hSONO5L.png",
  163. [" "] = "https://i.imgur.com/4JAFce0.png",
  164. }
  165. VoidChar.Config.FactionDescription = { -- if using BWhitelist factions then not needed
  166. [" "] = "",
  167. [" "] = "",
  168. [" "] = ""
  169. }
  170.  
  171. // THIS IS A PERCENTAGE OF THE ONLINE PLAYERS ON THE SERVER
  172. // EXAMPLE: YOU HAVE 20 PEOPLE ON YOUR SERVER, 10 IS THE LIMIT FOR THE FACTION IF USING 50%
  173. // Set to 0 or make the table empty to disable
  174. VoidChar.Config.FactionMaxPlayerPercent = {
  175. [" "] = 0,
  176. [" "] = 0,
  177. [" "] = 0
  178. }
  179.  
  180.  
  181.  
  182. //////////////////////////
  183. /// Job NPCs ///
  184. //////////////////////////
  185.  
  186. hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPJobNPCsInit", function ()
  187.  
  188. // Custom Job NPCs, use the command `voidchar_setjobnpc [npc type]` while looking on a Job NPC to change its display name and available jobs
  189. // Whitelist still applies
  190. // You don't need to use a NPC model, any model will do (so you can set a prop)
  191. // Example: `voidchar_setjobnpc normalJobs`
  192. VoidChar.Config.JobNPCs = {
  193. ["normalJobs"] = {
  194. displayName = "Employment Office",
  195. npcModel = "models/breen.mdl",
  196. changeCost = 5000,
  197. jobs = {
  198. [TEAM_CITIZEN] = true,
  199. [TEAM_MEDIC] = true,
  200. [TEAM_POLICE] = true,
  201. }
  202. },
  203. ["crimeJobs"] = {
  204. displayName = "Illegal Jobs",
  205. npcModel = "models/Eli.mdl",
  206. changeCost = 25000,
  207. jobs = {
  208. [TEAM_GANG] = true,
  209. [TEAM_MOB] = true,
  210. }
  211. }
  212. }
  213.  
  214. end)
  215.  
  216.  
  217.  
  218. //////////////////////////////////
  219. /// Numbered IDs ///
  220. //////////////////////////////////
  221.  
  222. // Note: This isn't necessarily a CloneID. You can use it in PoliceRP, MilitaryRP, etc..
  223. // Clone-ID must be checked in Character Creation (if ForceCloneID is disabled)
  224.  
  225. VoidChar.Config.EnableCloneID = false -- 4-digit id will be added after name (example: John Doe #1001)
  226. VoidChar.Config.CloneID = true -- The IDs will be numbered in order - starting with 1001
  227. VoidChar.Config.ForceCloneID = false -- Force CloneID for all characters (no checkbox will be available)
  228.  
  229. VoidChar.Config.DisplayAsSuffix = false -- Display CloneID before name
  230. VoidChar.Config.ShowHashtag = true -- Show CloneID hashtag
  231.  
  232.  
  233. ////////////////////
  234. /// Key Bindings ///
  235. ////////////////////
  236.  
  237. // Note: All KEY_ enums can be found in https://wiki.garrysmod.com/page/Enums/KEY
  238.  
  239. VoidChar.Config.OpenMenuKey = KEY_F6 -- Opens the character menu ingame (set to KEY_NONE to disable)
  240. VoidChar.Config.OpenAdminMenuKey = KEY_F7 -- Opens the admin menu
  241.  
  242.  
  243. ///////////////////
  244. //// Audio ////
  245. ///////////////////
  246.  
  247. VoidChar.Config.ShouldPlayMusic = false -- Background music while in character menu
  248. VoidChar.Config.MusicURL = "https://www.bensound.com/royalty-free-music?download=summer" // URL of the music
  249. VoidChar.Config.MusicVolume = 0.3 -- The volume of the music (1 meaning 100% volume, 0.5 is 50% and 3 is 300%, etc.)
  250.  
  251. ////////////////////
  252. /// Background ///
  253. ////////////////////
  254.  
  255. VoidChar.Config.BackgroundPath = "voidchar/bg4.jpg" -- The background image
  256.  
  257. VoidChar.Config.AutoResourceAddFile = false // The background will be sent to players using resource.AddFile. This will probably cause issues, so it's not recommmended.
  258.  
  259.  
  260. ///////////////////////////////
  261. //// Character Options ////
  262. ///////////////////////////////
  263.  
  264.  
  265. hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPInit", function ()
  266. VoidChar.Config.DefaultJobs = { -- Default whitelisted job(s) [IF USING FACTIONS, THEN YOU WILL NEED TO SET ATLEAST 1 FOR EACH FACTION!!!!]
  267. [TEAM_JEDIANWAERTER] = true,
  268. [TEAM_SITHANWAERTER] = true,
  269. [TEAM_ANWAERTER] = true,
  270. }
  271.  
  272. VoidChar.Config.ULXRanks = { -- ["ULX/ServerGuard/xAdmin RANK"] -> jobs (if using xAdmin, enable xAdminSupport)
  273. ["superadmin"] = {
  274. [TEAM_GUN] = true,
  275. }
  276. }
  277. end)
  278.  
  279. VoidChar.Config.WhitelistRanks = { -- Rank(s) that can access any job.
  280. ["superadmin"] = false,
  281. }
  282.  
  283. VoidChar.Config.WhitelistSteamID = { -- SteamID(s) that can access any job.
  284. ["STEAM_0:0:0"] = true,
  285. }
  286.  
  287. VoidChar.Config.AdminMenu = { -- This will determine who can access the admin menu and save NPCs.
  288. ["superadmin"] = true,
  289. ["serverleiter"] = true,
  290. ["stlvserverleiter"] = true,
  291. ["senioradmin"] = true,
  292. ["admin"] = true,
  293. ["moderator"] = true,
  294. }
  295.  
  296.  
  297. VoidChar.Config.CharacterRank = { -- Reserved Slots
  298. ["donator"] = {
  299. name = "Donator",
  300. customCheck = function(ply)
  301. return table.HasValue({"donator", "donator+"}, ply:GetUserGroup())
  302. end
  303. },
  304. ["donator+"] = {
  305. name = "Donator",
  306. customCheck = function(ply)
  307. return table.HasValue({"donator+"}, ply:GetUserGroup())
  308. end
  309. },
  310. ["donator++"] = {
  311. name = "Donator",
  312. customCheck = function(ply)
  313. return table.HasValue({"donator+"}, ply:GetUserGroup())
  314. end
  315. }
  316. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement