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: 76561198079712040
- /////////////////////////
- //// 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 = "en" -- 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 = true -- True if you want to use bWhitelist instead (disables script's default whitelist)
- VoidChar.Config.ItemStoreSupport = true -- 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 = false -- Use xAdmin instead of ULX/ServerGuard ranking. Will use the group name.
- VoidChar.Config.BodygroupOption = true -- Enable selection bodygroup option
- VoidChar.Config.BodygroupChangeInNPCs = true -- Enable bodygroup option in Job NPC and in Identity NPC
- VoidChar.Config.DefaultMoney = 100 -- Starting money for each character
- VoidChar.Config.MaxCharacters = 5 -- Max characters per person (MAX POSSIBLE VALUE IS 5)
- VoidChar.Config.Wait = 5 -- Delay between changing characters
- VoidChar.Config.CharacterCreateCooldown = 0 // Cooldown in minutes for creating characters
- VoidChar.Config.JobSwitchCooldown = 5 // Cooldown in minutes between changing jobs
- VoidChar.Config.MinNameLength = 7 -- Minimum length for a players name
- VoidChar.Config.MaxNameLength = 20 -- Maximum length for a players name
- VoidChar.Config.RestrictedWords = {} -- 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 = true -- Restrict changing the RPName using /name
- VoidChar.Config.NeedToChangeFromOnlyInJobNPC = true -- Need to change from works only in Job NPC, so you can keep using the character using the selection menu
- VoidChar.Config.ForceCharSelectionOnDelete = true -- Force changing the character when the current character gets deleted by an admin
- VoidChar.Config.JobChangeCost = 500 -- Cost for changing the job, for DEFAULT Job NPCs (set to 0 for free)
- VoidChar.Config.IdentityChangeCost = 750 -- 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 = false -- 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!)
- ["CIVILIAN"] = {
- [TEAM_CITIZEN] = true
- },
- ["IMPERIAL REMNANT"] = {
- [TEAM_HOBO] = true,
- [TEAM_MEDIC] = true
- },
- }
- end)
- VoidChar.Config.FactionIcons = { -- if using BWhitelist factions then not needed
- ["GALACTIC REPUBLIC"] = "https://m0uka.xyz/cdn/voidchar/faction1.png",
- ["GALACTIC IMPERIUM"] = "https://m0uka.xyz/cdn/voidchar/faction2.png",
- }
- VoidChar.Config.FactionDescription = { -- if using BWhitelist factions then not needed
- ["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.",
- ["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.",
- }
- // 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 = {
- ["GALACTIC REPUBLIC"] = 0,
- ["GALACTIC 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 = false -- 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 = false -- 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 = false -- Background music while in character menu
- VoidChar.Config.MusicURL = "https://www.bensound.com/royalty-free-music?download=summer" // URL of the music
- VoidChar.Config.MusicVolume = 0.3 -- 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_CITIZEN] = true,
- }
- }
- end)
- VoidChar.Config.WhitelistRanks = { -- Rank(s) that can access any job.
- ["admin"] = 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.
- ["founder"] = true,
- }
- VoidChar.Config.CharacterRank = { -- Reserved Slots
- ["operator"] = {
- name = "Donator Only SET RANKS",
- customCheck = function(ply)
- return table.HasValue({"operator"}, ply:GetUserGroup())
- end
- },
- ["admin"] = {
- name = "Staff Only",
- customCheck = function(ply)
- return table.HasValue({"senior-administrator", "head-administrator", "founder", "moderator", "trial-staff", "administrator"}, ply:GetUserGroup())
- end
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement