Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///////////////////////////////////////////////////
- // /\ /\___ (_) __| | / __\ |__ __ _ _ __ //
- // \ \ / / _ \| |/ _` |/ / | '_ \ / _` | '__| //
- // \ V / (_) | | (_| / /___| | | | (_| | | //
- // \_/ \___/|_|\__,_\____/|_| |_|\__,_|_| //
- ///////////////////////////////////////////////////
- /////////////////////////
- //// Support ////
- /////////////////////////
- // If you experience any issues with the script, need any help,
- // or you have found a bug, please open a ticket on GModStore.
- // Licensed to: 76561198087754927
- /////////////////////////
- //// Credits ////
- /////////////////////////
- // Sample music by bensound.com
- //////////////////////////////////
- //// ADDITIONAL CONFIGURATION ////
- //////////////////////////////////
- // Configure fonts in voidchar/lua/voidchar/vgui/_fonts.lua
- // Configure languages in voidchar/lua/voidchar/languages
- // Configure MySQL in voidchar/lua/voidchar_mysql.lua
- ///////////////////
- //// General ////
- ///////////////////
- VoidChar.Config.Language = "de" -- Which language to use (available languages: en, de, fr, ru, da)
- VoidChar.Config.CheckForUpdates = true -- Check for new updates every start (recommended)
- VoidChar.Config.UseBWhitelist = false -- True if you want to use bWhitelist instead (disables script's default whitelist)
- VoidChar.Config.ItemStoreSupport = false -- Support ItemStore (separate inventories)
- VoidChar.Config.LevelSystemSupport = false -- Support vrondakis Leveling system (separate XP)
- VoidChar.Config.CharacterClothesSupport = false -- Support Character & Clothes addon (separate clothing)
- VoidChar.Config.xAdminSupport = true -- Use xAdmin instead of ULX/ServerGuard ranking. Will use the group name.
- VoidChar.Config.BodygroupOption = false -- Enable selection bodygroup option
- VoidChar.Config.DefaultMoney = 1000 -- Starting money for each character
- VoidChar.Config.MaxCharacters = 4 -- Max characters per person (MAX POSSIBLE VALUE IS 5)
- VoidChar.Config.Wait = 60 -- Delay between changing characters
- VoidChar.Config.CharacterCreateCooldown = 1 // Cooldown in minutes for creating characters
- VoidChar.Config.JobSwitchCooldown = 5 // Cooldown in minutes between changing jobs
- VoidChar.Config.MinNameLength = 5 -- Minimum length for a players name
- VoidChar.Config.MaxNameLength = 25 -- Maximum length for a players name
- VoidChar.Config.RestrictedWords = {"Hitler", "Jude", "Stalin", "Nigger", "Jew", "Jewsef", "Kanacke"} -- Restricted words in a name
- VoidChar.Config.ForceTwoNames = false -- Force players to enter first name and last name
- VoidChar.Config.RestrictThreeNames = false -- Restrict 3 words in a name
- VoidChar.Config.RestrictF4Changing = true -- Restrict changing jobs in f4 menu
- VoidChar.Config.RestrictRPNameChange = false -- Restrict changing the RPName using /name
- VoidChar.Config.ForceCharSelectionOnDelete = true -- Force changing the character when the current character gets deleted by an admin
- VoidChar.Config.JobChangeCost = 0 -- Cost for changing the job, for DEFAULT Job NPCs (set to 0 for free)
- VoidChar.Config.IdentityChangeCost = 2000 -- Cost for changing your model and/or name (set to 0 for free)
- VoidChar.Config.DisableCreationWhitelist = false -- Only allow creating characters with default jobs (whitelist won't apply for creating characters)
- VoidChar.Config.EnableUsingNonWhitelistedJobs = true -- Enable using non-whitelisted jobs (use this if you want to not use whitelist, just editing the characters, [!setcharjob])
- VoidChar.Config.ModelSequences = {} -- Sequences (animations/poses) for playermodels in selection menu. If empty, none will be set.
- // Example sequences: {"pose_standing_01", "pose_standing_02"}
- ////////////////////////////
- /// Factions ///
- ////////////////////////////
- VoidChar.Config.FactionSystem = true -- Use faction system, where you need to select a faction before creating a character
- VoidChar.Config.UseBWhitelistFactions = false -- Use bWhitelist factions
- // NOTE: You need to disable showing of the popup and chat/console command.
- // (https://m0uka.xyz/u/images/png/liFAc.png)
- VoidChar.Config.DifferentFactionJobSwitch = false -- Allow to switch jobs using the Job NPC to different faction jobs (faction will NOT be changed)
- hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPFactionInit", function ()
- // Faction system: Up to 4 factions allowed
- // Leave empty when using BWhitelistFactions!!!
- VoidChar.Config.Factions = { -- Use this if VoidChar.Config.FactionSystem is enabled -> structure: faction name = [table of jobs] (whitelist will still apply!)
- ["JEDI ORDEN"] = {
- [TEAM_SITHKIND] = true
- },
- ["SITH IMPERIUM"] = {
- [TEAM_JEDIKIND] = true
- },
- ["EWIGES IMPERIUM"] = {
- [TEAM_ZAKUULRI] = true
- },
- }
- end)
- VoidChar.Config.FactionIcons = { -- if using BWhitelist factions then not needed
- ["JEDI ORDEN"] = "https://m0uka.xyz/cdn/voidchar/faction1.png",
- ["SITH IMPERIUM"] = "https://m0uka.xyz/cdn/voidchar/faction1.png",
- ["EWIGES IMPERIUM"] = "https://m0uka.xyz/cdn/voidchar/faction1.png",
- }
- VoidChar.Config.FactionDescription = { -- if using BWhitelist factions then not needed
- ["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.",
- ["SITH IMPERIUM"] = "Das alte Sith-Imperium wurde nach der hundertjährigen Dunkelheit von exilierten dunklen Jedi gegründet.",
- ["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.",
- }
- // THIS IS A PERCENTAGE OF THE ONLINE PLAYERS ON THE SERVER
- // EXAMPLE: YOU HAVE 20 PEOPLE ON YOUR SERVER, 10 IS THE LIMIT FOR THE FACTION IF USING 50%
- // Set to 0 or make the table empty to disable
- VoidChar.Config.FactionMaxPlayerPercent = {
- ["JEDI ORDEN"] = 0,
- ["SITH IMPERIUM"] = 0,
- ["EWIGES IMPERIUM"] = 0
- }
- //////////////////////////
- /// Job NPCs ///
- //////////////////////////
- hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPJobNPCsInit", function ()
- // Custom Job NPCs, use the command `voidchar_setjobnpc [npc type]` while looking on a Job NPC to change its display name and available jobs
- // Example: `voidchar_setjobnpc normalJobs`
- // NOTE: You can also use props instead of playermodels
- VoidChar.Config.JobNPCs = {
- ["normalJobs"] = {
- displayName = "Employment Office",
- npcModel = "models/breen.mdl",
- changeCost = 5000,
- jobs = {
- [TEAM_CITIZEN] = true,
- [TEAM_MEDIC] = true,
- [TEAM_POLICE] = true,
- }
- },
- ["crimeJobs"] = {
- displayName = "Illegal Jobs",
- npcModel = "models/Eli.mdl",
- changeCost = 25000,
- jobs = {
- [TEAM_GANG] = true,
- [TEAM_MOB] = true,
- }
- }
- }
- end)
- //////////////////////////////////
- /// Numbered IDs ///
- //////////////////////////////////
- // Note: This isn't necessarily a CloneID. You can use it in PoliceRP, MilitaryRP, etc..
- // Clone-ID must be checked in Character Creation (if ForceCloneID is disabled)
- VoidChar.Config.EnableCloneID = true -- 4-digit id will be added after name (example: John Doe #1001)
- VoidChar.Config.CloneID = true -- The IDs will be numbered in order - starting with 1001
- VoidChar.Config.ForceCloneID = false -- Force CloneID for all characters (no checkbox will be available)
- VoidChar.Config.DisplayAsSuffix = false -- Display CloneID after name (ignore the variable name, its display as prefix)
- VoidChar.Config.ShowHashtag = true -- Show CloneID hashtag
- ////////////////////
- /// Key Bindings ///
- ////////////////////
- // Note: All KEY_ enums can be found in https://wiki.garrysmod.com/page/Enums/KEY
- VoidChar.Config.OpenMenuKey = KEY_F6 -- Opens the character menu ingame (set to KEY_NONE to disable)
- VoidChar.Config.OpenAdminMenuKey = KEY_F7 -- Opens the admin menu
- ///////////////////
- //// Audio ////
- ///////////////////
- VoidChar.Config.ShouldPlayMusic = true -- Background music while in character menu
- VoidChar.Config.MusicURL = "https://www.youtube.com/watch?v=DdKylTkcyY4" // URL of the music
- VoidChar.Config.MusicVolume = 0.2 -- The volume of the music (1 meaning 100% volume, 0.5 is 50% and 3 is 300%, etc.)
- ////////////////////
- /// Background ///
- ////////////////////
- VoidChar.Config.BackgroundPath = "voidchar/bg.png" -- The background image
- VoidChar.Config.AutoResourceAddFile = false // The background will be sent to players using resource.AddFile. This will probably cause issues, so it's not recommmended.
- ///////////////////////////////
- //// Character Options ////
- ///////////////////////////////
- hook.Add("loadCustomDarkRPItems", "VoidChar.DarkRPInit", function ()
- VoidChar.Config.DefaultJobs = { -- Default whitelisted job(s) [IF USING FACTIONS, THEN YOU WILL NEED TO SET ATLEAST 1 FOR EACH FACTION!!!!]
- [TEAM_CITIZEN] = true,
- }
- VoidChar.Config.ULXRanks = { -- ["ULX/ServerGuard/xAdmin RANK"] -> jobs (if using xAdmin, enable xAdminSupport)
- ["superadmin"] = {
- [TEAM_GUN] = true,
- }
- }
- end)
- VoidChar.Config.WhitelistRanks = { -- Rank(s) that can access any job.
- ["Inhaber"] = true,
- ["Head-Admin"] = true,
- ["Developer"] = true,
- }
- VoidChar.Config.WhitelistSteamID = { -- SteamID(s) that can access any job.
- ["STEAM_0:0:0"] = true,
- }
- VoidChar.Config.AdminMenu = { -- This will determine who can access the admin menu and save NPCs.
- ["Inhaber"] = true,
- ["Head-Admin"] = true,
- ["Developer"] = true,
- }
- VoidChar.Config.CharacterRank = { -- Reserved Slots
- ["operator"] = {
- name = "Moderator Only",
- customCheck = function(ply)
- return table.HasValue({"operator"}, ply:GetUserGroup())
- end
- },
- ["admin"] = {
- name = "Admin Only",
- customCheck = function(ply)
- return table.HasValue({"admin"}, ply:GetUserGroup())
- end
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement