Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- You can no longer drop weapons you are given through ranks
- Fixed not setting rank model upon respawning
- Configs added:
- None
- ]]
- JobRanksConfig = {}
- //How often should it update and save?
- JobRanksConfig.UpdateTimer = 30
- //Players Required to be able to earns playtime through timer
- JobRanksConfig.PlayersRequired = 0
- //Should it give SALARY*Bonus instead of SALARY+Bonus?
- //NOTE: This calculates BaseSalary + (BaseSalary/100*Bonus)
- //So if you set BonusSalary to 15 it will be 15% of the original salary
- JobRanksConfig.BonusSalaryPercent = false
- //Disables progression if player is AFK
- JobRanksConfig.DisableAFKProgress = true
- //HUD Jobranks
- JobRanksConfig.HUD = true
- //Defined 0-100, 0 is as much left as it can and 100 is as much right as it can
- JobRanksConfig.UIW = 100
- //Defined 0-100, 0 is as much up as it can and 100 is as much down as it can
- JobRanksConfig.UIH = 50
- --[[
- bar = a bar for progress
- time = text for time left
- number = numbers only
- ]]
- JobRanksConfig.HUDType = "number"
- JobRanksConfig.UIBoxColor = Color(100,100,100,200)
- JobRanksConfig.UIOutlineColor = Color(200, 200, 200, 200)
- JobRanksConfig.UITextColor = Color(255,255,255,200)
- JobRanksConfig.BarBackground = Color(0,0,0,255)
- JobRanksConfig.Bar = Color(0,200,0,255)
- //Allow teams to be created before we use IDs
- hook.Add("loadCustomDarkRPItems", "LoadJobConfigs", function()
- timer.Simple(3, function()
- JobRanks = {}
- //Setup table for job
- JobRanks[TEAM_POLICE] = {}
- //Maximum rank achieveable
- JobRanks[TEAM_POLICE].MaxJobRank = 12
- //Required playtime for each promotion
- JobRanks[TEAM_POLICE].ReqRanks = {0,1500, 3000, 6000, 12000, 20000, 30000, 45000, 60000, 75000, 90000, 105000}
- //Each ranks title
- JobRanks[TEAM_POLICE].NameRanks = {"Private","Private First Class","Lance Corporal","Corporal","Sergeant","Staff Sergeant","Sergeant First Class","Master Sergeant","First Sergeant","Sergeant Major","Command Sergeant Major","Sergeant Major Of The Battlion"}
- //Bonus salary for each promotion
- JobRanks[TEAM_POLICE].BonusSalary = 0
- //Bonus equipment -> {RANK REQUIRED, WEAPON CLASS} for example ->
- //for example -> JobRanks[JOB].ExtraLoadout = {{5,"weapon_pumpshotgun2"},{7, "weapon_mp52"}}
- JobRanks[TEAM_POLICE].ExtraLoadout = {{5,"weapon_pumpshotgun2"},{7, "weapon_mp52"}}
- //Works the same way as ExtraLoadout, but only gives to that specific rank
- JobRanks[TEAM_POLICE].ExtraLoadoutSingleRank = {}
- //JobRanks[JOB].Model = {MODEL PATH, {BodygroupID, number}, skin}
- //if left empty it will set ranks to standard model, bodygroup and skin
- //Set a specific model, bodygroup and skin to JUST one rank and not to all you can use JobRanks[JOB].Model[RANK ID] = {"modelpath", {{BodygroupID, number},{BodygroupID, number}}, skin}
- JobRanks[TEAM_POLICE].Model = {}
- //Prefix, it's set infront of the name for example Pvt.ToBadForYou, Sgt.ToBadForYou
- //to set a prefix to JUST one rank and not to all you can use JobRanks[JOB].Prefix[RANK ID] = "prefix"
- //or like this if you want for all -> JobRanks[TEAM_POLICE].Prefix = {"Rct","Dpt","Det","Sgt","Lt", "Cpt", "Maj", "Insp"}
- JobRanks[TEAM_POLICE].Prefix = {"PVT","PFC","LCPL","CPL","SGT","SSG","SFC","MSG","1SG","SGM","CSM","SMB"}
- //Restrict certain entities to a specific or higher rank JobRanks[JOB].Entities[ENT CLASS] = LEVELREQUIREMENT
- //For example -> JobRanks[TEAM_POLICE].Entities["money_printer"] = 5 -> You need to be rank 5 in order to buy a money printer as a police officer
- //Add entities under JobRanks[TEAM_POLICE].Entities = {}
- JobRanks[TEAM_POLICE].Entities = {}
- //Works the same as for entities except here you write the entity that the shipments contain so for example for
- //Shotgun you would do JobRanks[TEAM_POLICE].Shipments["weapon_pumpshotgun2"] = 5
- JobRanks[TEAM_POLICE].Shipments = {}
- //Allows warranting if player is this rank or higher, Set to nil if no one should be able to within this job
- JobRanks[TEAM_POLICE].Warrant = 5
- //Allows player to make others wanted, if player is this rank or higher, Set to nil if no one should be able to within this job
- JobRanks[TEAM_POLICE].Wanted = 5
- //THESE ARE JUST TEMPLATES, download icons online and insert their path here (Also upload it on workshop or to your FastDL and add it to force download)
- JobRanks[TEAM_POLICE].Icons = {
- [1] = Material(""),
- }
- //Set this to true to disable progression through time
- JobRanks[TEAM_POLICE].DisableProgression = true
- //Add bonus stats depending on rank (Currently supports Health+Armor)
- JobRanks[TEAM_POLICE].BonusStats = {}
- //Requirement to become this job -> {RANK, JOB}
- //For example -> JobRanks[TEAM_CHIEF].ReqToJoin = {2,TEAM_POLICE}
- //Means you require rank 2 as Police before you can become Chief
- JobRanks[TEAM_CHIEF].ReqToJoin = {8, TEAM_POLICE}
- JobRanks[TEAM_CHIEF].Entities = {}
- JobRanks[TEAM_CHIEF].Shipments = {}
- JobRanks[TEAM_CT] = {}
- JobRanks[TEAM_CT].MaxJobRank = 12
- JobRanks[TEAM_CT].ReqRanks = {0,}
- JobRanks[TEAM_CT].NameRanks = {"Private","Private First Class","Lance Corporal","Corporal","Sergeant","Staff Sergeant","Sergeant First Class","Master Sergeant","First Sergeant","Sergeant Major","Command Sergeant Major","Sergeant Major Of The Battlion"}
- JobRanks[TEAM_CT].BonusSalary = 0
- JobRanks[TEAM_CT].ExtraLoadout = {}
- JobRanks[JOB].Model = {models/player/sgg/starwars/clonetrooper_clean.mdl, 1}
- JobRanks[TEAM_CT].Prefix = {"PVT","PFC","LCPL","CPL","SGT","SSG","SFC","MSG","1SG","SGM","CSM","SMB"}
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement