Probléme avec le Job Rank Sytem

  • Initiateur de la discussion
MaGiX

MaGiX

Geek
Messages
92
Score réaction
9
Points
85
Bonjour, J'ai prit le Job rank system ( https://scriptfodder.com/scripts/view/2631/v118-job-ranks-system-customizable ) puis je l'ai customiser a ma guise sauf que l'addon ne fonctionne pas rien ne se passe et je n'est pas d'error Lua (Je tien a préciser que je l'ai acheter donc ne venez pas crier au Leak).
Merci a se qui pourront m'aider.
Si vous avez besoin de plus de renseignement n'hésitez pas
 
Feytone

Feytone

Chuck Norris
Messages
4 741
Score réaction
1 301
Points
600
Alors cherche le tfby_config quelque chose comme ça. ToBadForYou a installé quelque chose de bizarre pour la configuration et ça se passe là dedans.
 
  • Initiateur de la discussion
MaGiX

MaGiX

Geek
Messages
92
Score réaction
9
Points
85
D'accord merci je regarderais vers 15h et je vous tiendrais au courant.
 
  • Initiateur de la discussion
MaGiX

MaGiX

Geek
Messages
92
Score réaction
9
Points
85
Code:
--[[
You can now add extra health and armor to each rank
Fixed lua error caused when using HUD type: bar or number while being max rank
Configs added:
Bonustats (Extra Health+Armor)
]]
JobRanksConfig = {}
JobRanksConfig.UpdateTimer = 30
JobRanksConfig.PlayersRequired = 0
JobRanksConfig.BonusSalaryPercent = false
JobRanksConfig.DisableAFKProgress = true
JobRanksConfig.HUD = true
JobRanksConfig.UIW = 100
JobRanksConfig.UIH = 0
--[[
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)
hook.Add("loadCustomDarkRPItems", "LoadJobConfigs", function()
timer.Simple(3, function()
JobRanks = {}
JobRanks[TEAM_POLICIER] = {}
JobRanks[TEAM_POLICIER].MaxJobRank = 8
JobRanks[TEAM_POLICIER].ReqRanks = {0,1500, 3000, 6000, 12000, 20000, 30000, 45000}
JobRanks[TEAM_POLICIER].NameRanks = {"Gardien Stagiaire","Gardien Titulaire","Gardien Principal","Brigadier","Brigadier Chef","Brigadier Chef Principal","Lieutenant","Capitaine"}
JobRanks[TEAM_POLICIER].BonusSalary = 15
JobRanks[TEAM_POLICIER].ExtraLoadout = {{2,"m9k_sig_p229r"},{3,"m9k_m92beretta"},{4,"m9k_glock"},{6,"sent_sniffer"}
JobRanks[TEAM_POLICIER].ExtraLoadoutSingleRank = {}
JobRanks[TEAM_POLICIER].Model = {}
JobRanks[TEAM_POLICIER].Prefix = {}
JobRanks[TEAM_POLICIER].Entities = {}
JobRanks[TEAM_POLICIER].Shipments = {}
JobRanks[TEAM_POLICIER].Warrant = 5
JobRanks[TEAM_POLICIER].Wanted = 5
JobRanks[TEAM_POLICIER].Icons = {
[1] = Material("jobranks/police/rank1.png"),
[2] = Material("jobranks/police/rank2.png"),
[3] = Material("jobranks/police/rank3.png"),
[4] = Material("jobranks/police/rank4.png"),
[5] = Material("jobranks/police/rank5.png"),
[6] = Material("jobranks/police/rank6.png"),
[7] = Material("jobranks/police/rank7.png"),
[8] = Material("jobranks/police/rank8.png"),
}
JobRanks[TEAM_POLICE].DisableProgression = false
JobRanks[TEAM_POLICE].BonusStats = {
[1] = {Health = 5, Armor = 5},
[2] = {Health = 10, Armor = 10},
[3] = {Health = 15, Armor = 15},
[4] = {Health = 20, Armor = 20},
[5] = {Health = 25, Armor = 25},
[6] = {Health = 30, Armor = 30},
[7] = {Health = 35, Armor = 35},
[8] = {Health = 40, Armor = 40}
}
JobRanks[TEAM_CHIEF] = {}
JobRanks[TEAM_CHIEF].MaxJobRank = 4
JobRanks[TEAM_CHIEF].ReqRanks = {0,5000, 10000, 20000}
JobRanks[TEAM_CHIEF].NameRanks = {"Chief Recruit","Deputy Chief","Assistant Chief","Chief of Police"}
JobRanks[TEAM_CHIEF].BonusSalary = 30
JobRanks[TEAM_CHIEF].ExtraLoadout = {}
JobRanks[TEAM_CHIEF].Model = {}
JobRanks[TEAM_CHIEF].Prefix = {}
JobRanks[TEAM_CHIEF].ReqToJoin = {8, TEAM_POLICE}
JobRanks[TEAM_CHIEF].Entities = {}
JobRanks[TEAM_CHIEF].Shipments = {}
JobRanks[TEAM_MEDIC] = {}
JobRanks[TEAM_MEDIC].MaxJobRank = 9
JobRanks[TEAM_MEDIC].ReqRanks = {0,1500, 3000, 6000, 12000, 20000, 30000, 45000, 60000}
JobRanks[TEAM_MEDIC].NameRanks = {"Medic Trainee","Medic","Medical Scientist","Junior Doctor","Doctor","Plastic Surgeon","Brain Surgeon","Chief Physician","Hospital Manager"}
JobRanks[TEAM_MEDIC].BonusSalary = 15
JobRanks[TEAM_MEDIC].ExtraLoadout = {}
JobRanks[TEAM_MEDIC].Model = {}
JobRanks[TEAM_MEDIC].Prefix = {}
JobRanks[TEAM_MEDIC].Entities = {}
JobRanks[TEAM_MEDIC].Shipments = {}
JobRanks[TEAM_MEDIC].Warrant = 5
JobRanks[TEAM_MEDIC].Wanted = 5
JobRanks[TEAM_MAYOR] = {}
JobRanks[TEAM_MAYOR].MaxJobRank = 7
JobRanks[TEAM_MAYOR].ReqRanks = {0,5000, 10000, 20000, 40000, 50000, 70000, 90000}
JobRanks[TEAM_MAYOR].NameRanks = {'Candidat','Politicien','Vice-Maire','Maire','Vice President','President','President Supreme'}
JobRanks[TEAM_MAYOR].BonusSalary = 45
JobRanks[TEAM_MAYOR].ExtraLoadout = {}
JobRanks[TEAM_MAYOR].Model = {}
JobRanks[TEAM_MAYOR].Prefix = {}
JobRanks[TEAM_MAYOR].Entities = {}
JobRanks[TEAM_MAYOR].Shipments = {}
JobRanks[TEAM_FIREFIGHTER] = {}
JobRanks[TEAM_FIREFIGHTER].MaxJobRank = 14
JobRanks[TEAM_FIREFIGHTER].ReqRanks = {0,1500, 3000, 6000, 12000, 20000, 30000, 45000, 60000, 75000, 85000, 100000, 101500, 110000}
JobRanks[TEAM_FIREFIGHTER].NameRanks = {"Sapeur Classe 2","Sapeur Classe 1","Caporal","Caporal-Chef","Sergent","Sergent-Chef","Adjudant","Adjudant-Chef","Major","Lieutnant","Capitaine","Commandant","Lieutnant-Colonel","Colonel"}
JobRanks[TEAM_FIREFIGHTER].BonusSalary = 10
JobRanks[TEAM_FIREFIGHTER].ExtraLoadout = {}
JobRanks[TEAM_FIREFIGHTER].Model = {}
JobRanks[TEAM_FIREFIGHTER].Prefix = {}
JobRanks[TEAM_FIREFIGHTER].Entities = {}
JobRanks[TEAM_FIREFIGHTER].Shipments = {}
end)
end)
Voici le sh_jobranks_config
 
Discord d'entraide
Rejoignz-nous sur Discord