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: 76561198037659692
- /////////////////////////
- //// 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 = "fr" -- 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 = true -- Support vrondakis Leveling system (separate XP)
- --VoidChar.Config.CharacterClothesSupport = true -- Support Character & Clothes addon (separate clothing) [WORK IN PROGRESS, WILL BE AVAILABLE SOON]
- 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.DefaultMoney = 0 -- 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 = 5 // Cooldown in minutes for creating characters
- VoidChar.Config.JobSwitchCooldown = 1 // Cooldown in minutes between changing jobs
- VoidChar.Config.MinNameLength = 1 -- 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 = false -- Restrict changing jobs in f4 menu
- VoidChar.Config.RestrictRPNameChange = false -- Restrict changing the RPName using /name
- VoidChar.Config.JobChangeCost = 0 -- Cost for changing the job, for DEFAULT Job NPCs (set to 0 for free)
- VoidChar.Config.IdentityChangeCost = 0 -- Cost for changing your model and/or name (set to 0 for free)
- 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!)
- ["UNSC"] = {
- [TEAM_SOLDAT1] = true,
- [TEAM_SOLDAT2] = true,
- [TEAM_SOLDAT3] = true,
- [TEAM_SOLDATM1] = true,
- [TEAM_SOLDATM2] = true,
- [TEAM_SOLDATM3] = true,
- [TEAM_SOLDATP1] = true,
- [TEAM_SOLDATP2] = true,
- [TEAM_SOLDATL1] = true,
- [TEAM_SOLDATL2] = true,
- [TEAM_SOLDATL3] = true,
- [TEAM_SOLDATL12] = true,
- [TEAM_SPARTAN1] = true,
- [TEAM_SPARTAN2] = true,
- [TEAM_SPARTAN10] = true
- },
- ["Alliance Covenante"] = {
- [TEAM_GROGNARD1] = true,
- [TEAM_GROGNARD2] = true,
- [TEAM_GROGNARD3] = true,
- [TEAM_GROGNARDA1] = true,
- [TEAM_GROGNARDA2] = true,
- [TEAM_GROGNARDA3] = true,
- [TEAM_ELITE1] = true,
- [TEAM_ELITE2] = true,
- [TEAM_ELITE3] = true,
- [TEAM_ELITE12] = true,
- [TEAM_ELITE13] = true,
- [TEAM_ELITEP1] = true,
- [TEAM_ELITEP2] = true,
- [TEAM_BRUTE1] = true,
- [TEAM_BRUTE2] = true,
- [TEAM_BRUTE3] = true,
- [TEAM_CHASSEUR1] = true,
- [TEAM_CHASSEUR2] = true
- },
- ["Parasite"] = {
- [TEAM_PARASITE_HUMAIN] = true,
- [TEAM_PARASITE_PILOTE] = true,
- [TEAM_PARASITE_ELITE] = true,
- [TEAM_PARASITE_BRUTE] = true,
- [TEAM_PARASITE_TANK] = true
- },
- }
- end)
- VoidChar.Config.FactionIcons = { -- if using BWhitelist factions then not needed
- ["UNSC"] = "https://m0uka.xyz/cdn/voidchar/faction1.png",
- ["Alliance Covenante"] = "https://m0uka.xyz/cdn/voidchar/faction2.png",
- ["Parasite"] = "https://m0uka.xyz/cdn/voidchar/faction2.png",
- }
- VoidChar.Config.FactionDescription = { -- if using BWhitelist factions then not needed
- ["UNSC"] = "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.",
- ["Alliance Covenante"] = "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.",
- ["Parasite"] = "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.",
- }
- // 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 = {
- ["UNSC"] = 50,
- ["Alliance Covenante"] = 50,
- ["Parasite"] = 50
- }
- //////////////////////////
- /// 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
- // Whitelist still applies
- // You don't need to use a NPC model, any model will do (so you can set a prop)
- // Example: `voidchar_setjobnpc normalJobs`
- 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 before name
- 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=rs6Y4kZ8qtw" // 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!!!!]
- [Choix de faction] = true,
- }
- VoidChar.Config.ULXRanks = { -- ["ULX/ServerGuard/xAdmin RANK"] -> jobs (if using xAdmin, enable xAdminSupport)
- ["superadmin"] = {
- [TEAM_ADMIN] = 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.
- ["superadmin"] = true,
- }
- VoidChar.Config.CharacterRank = { -- Reserved Slots
- ["V.I.P"] = {
- name = "V.I.P",
- customCheck = function(ply)
- return table.HasValue({"V.I.P"}, ply:GetUserGroup())
- end
- },
- ["admin"] = {
- name = "Administration",
- customCheck = function(ply)
- return table.HasValue({"superadmin"}, ply:GetUserGroup())
- end
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement