Je n'arrive pas a mettre une restriction de rank sur un job

  • Initiateur de la discussion Requinou
  • Date de début
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
Bonjour , moi quand je veux mettre une restriction de rank sur un jobs , mais , j'ai une lua error .
( Je précise que j'utilise ULX )

Mon Code :
Code:
--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.
Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua Once you've done that, copy and paste the job to this file and edit it.
The default jobs can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_Citoyen = DarkRP.createJob("Citoyen", { color = Color(17, 235, 13, 255), model = { "models/player/Group01/male_01.mdl", "models/player/Group01/male_02.mdl", "models/player/Group01/male_03.mdl", "models/player/Group01/male_04.mdl", "models/player/Group01/male_05.mdl", "models/player/Group01/male_08.mdl", "models/player/zelpa/male_01.mdl", "models/player/zelpa/male_02.mdl", "models/player/zelpa/male_03.mdl", "models/player/zelpa/male_04.mdl", "models/player/zelpa/male_05.mdl", "models/player/zelpa/male_06.mdl", "models/player/zelpa/male_07.mdl", "models/player/zelpa/male_08.mdl", "models/player/zelpa/male_09.mdl", "models/player/zelpa/male_10.mdl", "models/player/zelpa/male_11.mdl", "models/player/zelpa/female_01.mdl", "models/player/zelpa/female_02.mdl", "models/player/zelpa/female_03.mdl", "models/player/zelpa/female_04.mdl", "models/player/zelpa/female_05.mdl", "models/player/zelpa/female_06.mdl", "models/player/zelpa/female_07.mdl", "models/player/zelpa/female_01_b.mdl", "models/player/zelpa/female_02_b.mdl", "models/player/zelpa/female_03_b.mdl", "models/player/zelpa/female_04_b.mdl", "models/player/zelpa/female_05_b.mdl", "models/player/zelpa/female_06_b.mdl", "models/player/zelpa/female_07_b.mdl"}, description = [[Vous devez survivre face aux zombies]], weapons = {}, command = "Citoyen", max = 0, salary = 50, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_AncienVet = DarkRP.createJob("[V.I.P]Ancien Vétéran", { color = Color(17, 235, 13, 255), model = {"models/l4d/billpm.mdl", "models/l4d/francispm.mdl", "models/l4d/rochellepm.mdl"}, description = [[Vous êtes un ancien Vétéran de l'armé , un pro de la survie , vous savez utilisez les armes comme le M82 et la M60E3 par rapport au simple citoyen. Lors de votre formation , on vous a appris a escalader un peu partout . Vous devez survivre]], weapons = {"fas2_dv2", "fas2_ragingbull", "climb_swep2"}, command = "AncienVet", max = 3, salary = 60, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce job est réservé au V.I.P !",})
TEAM_Marchand = DarkRP.createJob("Marchand", { color = Color(17, 235, 13, 255), model = {"models/joshua_graham/joshua_graham_pm.mdl"}, description = [[Équiper touts les citoyens, les soldats et les ennemies, votre but est de vous faire de l'argent.]], weapons = {}, command = "Marchand", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Cuisinier = DarkRP.createJob("Cuisinier", { color = Color(17, 235, 13, 255), model = {"models/fearless/chef1.mdl", "models/fearless/chef2.mdl"}, description = [[Donner de la nourriture aux citoyens pour leur donner de la force.]], weapons = {}, command = "Cuisinier", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Médecin = DarkRP.createJob("Médecin", { color = Color(17, 235, 13, 255), model = {"models/player/Group03m/female_01.mdl", "models/player/Group03m/female_02.mdl", "models/player/Group03m/female_03.mdl", "models/player/Group03m/female_04.mdl", "models/player/Group03m/female_05.mdl", "models/player/Group03m/female_06.mdl", "models/player/Group03m/male_01.mdl", "models/player/Group03m/male_02.mdl", "models/player/Group03m/male_03.mdl", "models/player/Group03m/male_04.mdl", "models/player/Group03m/male_05.mdl", "models/player/Group03m/male_06.mdl", "models/player/Group03m/male_07.mdl", "models/player/Group03m/male_08.mdl", "models/player/Group03m/male_09.mdl"}, description = [[Soigner les citoyens pour qu'ils puissent rester en vie.]], weapons = {"med_kit"}, command = "Médecin", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Gardiendelaville = DarkRP.createJob("Gardien de la ville", { color = Color(0, 67, 255, 255), model = {"models/player/arnold_schwarzenegger.mdl"}, description = [[Vous protéger les citoyens seulement dans la ville.]], weapons = {"fas2_deagle"}, command = "Gardien de la ville", max = 5, salary = 120, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Gouvernement", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(25) end
})
TEAM_Maire = DarkRP.createJob("Maire", { color = Color(0, 67, 255, 255), model = {"models/player/breen.mdl"}, description = [[Vous gouverner la ville pour que tout ce passe bien.]], weapons = {"fas2_deagle"}, command = "Maire", max = 1, salary = 150, admin = 0, vote = true, hasLicense = false, candemote = false, category = "Gouvernement", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_Gardeducorp = DarkRP.createJob("Garde du corp", { color = Color(0, 67, 255, 255), model = {"models/player/portal/Male_01_security.mdl", "models/player/portal/Male_01_security.mdl", "models/player/portal/Male_02_security.mdl", "models/player/portal/Male_03_security.mdl", "models/player/portal/Male_04_security.mdl", "models/player/portal/Male_05_security.mdl", "models/player/portal/Male_06_security.mdl", "models/player/portal/Male_07_security.mdl", "models/player/portal/Male_08_security.mdl", "models/player/portal/Male_09_security.mdl"}, description = [[Vous devez protéger un maximum le Maire.]], weapons = {"fas2_deagle"}, command = "Gardeducorp", max = 5, salary = 125, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Gouvernement", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(25) end
})
TEAM_recrueusarmy = DarkRP.createJob("Recrue - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/AA3Hacks/AA3Male01_player.mdl",
"models/AA3Hacks/AA3Male02_player.mdl",
"models/AA3Hacks/AA3Male03_player.mdl",
"models/AA3Hacks/AA3Male04_player.mdl",
"models/AA3Hacks/AA3Male05_player.mdl",
"models/AA3Hacks/AA3Male06_player.mdl",
"models/AA3Hacks/AA3Male07_player.mdl",
"models/AA3Hacks/AA3Male08_player.mdl",
"models/AA3Hacks/AA3Male09_player.mdl"}, description = [[Vous êtes une recrue de la U.S ARMY.]], weapons = {"fas2_glock20"}, command = "recrueusarmy", max = 10, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_regimentsniper = DarkRP.createJob("[V.I.P]Régiment sniper - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/usmc_marsoc01.mdl", "models/player/usmc_marsoc02.mdl", "models/player/usmc_marsoc03.mdl", "models/player/usmc_marsoc04.mdl", "models/player/usmc_marsoc05.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_m21"}, command = "SniperUsarmy", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P", "Régiment U.S Army"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce job est réservé au V.I.P et aux Régiments",})
TEAM_agentdelausarmy = DarkRP.createJob("Agent - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/kerry/Army_m_01.mdl", "models/player/kerry/Army_m_02.mdl", "models/player/kerry/Army_m_03.mdl", "models/player/kerry/Army_m_04.mdl", "models/player/kerry/Army_m_05.mdl", "models/player/kerry/Army_m_07.mdl", "models/player/kerry/Army_m_06.mdl", "models/player/kerry/Army_m_08.mdl", "models/player/kerry/Army_m_09.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_deagle"}, command = "agentdelausarmy", max = 5, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end
})
TEAM_regimentassault = DarkRP.createJob("[V.I.P]Régiment assault - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/nvg_usmc01.mdl", "models/player/nvg_usmc02.mdl", "models/player/nvg_usmc03.mdl", "models/player/nvg_usmc04.mdl", "models/player/nvg_usmc05.mdl",}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_famas"}, command = "AsaultUsarmy", max = 1, salary = 142, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P", "Régiment U.S Army"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce job est réservé au V.I.P et aux Régiments",})
TEAM_recrueari = DarkRP.createJob("Recrue - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/mfc_new_heavy_npc.mdl", "models/MFC_New_Heavy.mdl", "models/mfc_new_npc.mdl", "models/mfc_new.mdl"}, description = [[Vous êtes une recrue de la A.R.I]], weapons = {"fas2_glock20"}, command = "recrueari", max = 10, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_agentari = DarkRP.createJob("Agent - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/minson97/bo2/seal_masked.mdl",
"models/minson97/bo2/seal.mdl"}, description = [[Vous êtes un haut grader de la A.R.I]], weapons = {"fas2_deagle"}, command = "agentari", max = 5, salary = 124, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end
})
TEAM_commandoassault = DarkRP.createJob("[V.I.P]Commando Assault - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/blacklist/merc1.mdl"}, description = [[Vous êtes un au grader de la A.R.I]], weapons = {"fas2_famas"}, command = "assaultari", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P", "Commando A.R.I"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce job est réservé au V.I.P et Commando",})
TEAM_commandosniper = DarkRP.createJob("[V.I.P]Commando Sniper - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/player/US_Sniper_Aftermath.mdl"}, description = [[Vous êtes un au grader de la A.R.I]], weapons = {"fas2_m21"}, command = "sniperari", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P", "Commando A.R.I"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce job est réservé au V.I.P et Commando",})
TEAM_peste = DarkRP.createJob("[V.I.P]Projet Peste", { color = Color(255, 0, 0, 255), model = {"models/player/plague_doktor/PLAYER_Plague_Doktor.mdl"}, description = [[Vous êtes le projets Peste , créer par les A.R.I , vous êtes grand et fort , vous vous battez uniquement au poings et a la grosse sulfateuse .Personne ne connait votre vrai nature .]], weapons = {"weapon_mini_gun_v3", "m9k_fists"}, command = "peste", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(300) ply:SetHealth(300) ply:SetArmor(200) ply:SetModelScale(1.15) ply:SetRunSpeed(350) end ammo = { ["smg1"] = 5000 },
})
TEAM_ARIGen = DarkRP.createJob("[V.I.P]Général de l'ARI", { color = Color(255, 0, 0, 255), model = {"models/player/big_boss.mdl", "models/player/big_boss.mdl", "models/player/big_boss3.mdl", "models/player/big_boss4.mdl", "models/player/big_boss5.mdl", "models/player/big_boss6.mdl", "models/player/big_boss7.mdl"}, description = [[Vous êtes le général de l'ARI , son Fondateur , gouverner vos troupes et écrasez vos ennemis]], weapons = {"fas2_sks", "fas2_wakizashi", "fas2_rk95"}, command = "ARIGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) end customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce job est réservé au V.I.P !",})
TEAM_USARMYGen = DarkRP.createJob("[V.I.P]Général de l'US Army", { color = Color(235, 199, 13, 255), model = {"models/steinman/bf4/us_01.mdl",
"models/steinman/bf4/us_02.mdl" ,
"models/steinman/bf4/us_03.mdl" ,
"models/steinman/bf4/us_04.mdl" ,
"models/steinman/bf4/ru_01.mdl" ,
"models/steinman/bf4/ru_02.mdl" ,
"models/steinman/bf4/ru_03.mdl" ,
"models/steinman/bf4/ru_04.mdl" }, description = [[Vous êtes le général de l'US ARMY , gouverner vos troupes et écrasez vos ennemis]], weapons = {"fas2_sks", "fas2_wakizashi", "fas2_rk95"}, command = "USGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) end
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce job est réservé au V.I.P !",})
TEAM_robot = DarkRP.createJob("[V.I.P]Projet Robot", { color = Color(235, 199, 13, 255), model = {"models/Killzone Mercenary/Helghast_Police_Trooper/Police_Trooper.mdl"}, description = [[Vous êtes le projets Robot , créer par l'U.S Army, vous êtes grand et fort , vous vous battez uniquement au poings et a la grosse sulfateuse .Vous êtes un robot sans aucun sentiments .]], weapons = {"weapon_mini_gun_v3", "m9k_fists"}, command = "robot", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(500) ply:SetHealth(500) ply:SetArmor(250) ply:SetModelScale(1.15) ply:SetRunSpeed(150) ply:SetWalkSpeed(100) end ammo = { ["smg1"] = 5000 },
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce job est réservé au V.I.P !",})
TEAM_CommandoEspion = DarkRP.createJob("[V.I.P]Commando Espion - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/blacklist/spy1.mdl"}, description = [[Vous êtes le Commando Espion de l'A.R.I , camouflez vous pour éliminez vos ennemies , grace a votre modules d'invisibilité , vous êtes l'as de l'infiltration]], weapons = {"weapon_camo", "fas2_wakizashi", "fas2_ump45"}, command = "ARIEspion", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) ply:SetRunSpeed(250) end
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P", "Commando A.R.I"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce job est réservé au V.I.P et Commando",})
TEAM_ARIGen2 = DarkRP.createJob("[V.I.P]Sous-Général de l'ARI", { color = Color(255, 0, 0, 255), model = {"models/dizcordum/dizcordum_exo.mdl", "models/dizcordum/dizcordum.mdl"}, description = [[Vous êtes le sous général de l'ARI , aidez le général et gouverner les troupes et écrasez vos ennemis]], weapons = {"fas2_wakizashi", "fas2_rk95"}, command = "ARISousGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) end
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce job est réservé au V.I.P !",})
TEAM_USArmyMed = DarkRP.createJob("Médecin Militaire - U.S Army", { color = Color(235, 199, 13, 255), model = {"models/player/101st_medic_us_male01.mdl", "models/player/101st_medic_us_male02.mdl", "models/player/101st_medic_us_male03.mdl", "models/player/101st_medic_us_male04.mdl", "models/player/101st_medic_us_male05.mdl", "models/player/101st_medic_us_male06.mdl", "models/player/101st_medic_us_male07.mdl", "models/player/101st_medic_us_male08.mdl", "models/player/101st_medic_us_male09.mdl"}, description = [[Vous êtes le Médecin Militaire de l'ARI , soignez les troupes et écrasez vos ennemis, Attention , vous serez surêment une cible prioritaire !]], weapons = {"weapon_medkit", "fas2_ragingbull"}, command = "USArmyMedecin", max = 3, salary =75, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(125) end
})
TEAM_CommandoHeavy = DarkRP.createJob("[V.I.P]Commando Heavy - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/player/auditor/r6s/thatcher.mdl"}, description = [[Vous êtes le Commando Heavy de l'A.R.I ,tuez vos ennemies et passez en première ligne !]], weapons = {"fas2_rem870", "fas2_deagle", "fas2_machete"}, command = "ARIheavy", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(125) ply:SetHealth(125) ply:SetArmor(200) ply:SetRunSpeed(180)
end
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P", "Commando A.R.I"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce job est réservé au V.I.P et Commando",})
TEAM_ARIMed = DarkRP.createJob("Médecin Militaire - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/player/group04m/male_01.mdl", "models/player/group04m/male_02.mdl", "models/player/group04m/male_03.mdl", "models/player/group04m/male_04.mdl", "models/player/group04m/male_05.mdl", "models/player/group04m/male_06.mdl", "models/player/group04m/male_07.mdl", "models/player/group04m/male_08.mdl", "models/player/group04m/male_09.mdl", "models/player/group04m/female_01.mdl", "models/player/group04m/female_02.mdl", "models/player/group04m/female_03.mdl", "models/player/group04m/female_04.mdl", "models/player/group04m/female_05.mdl", "models/player/group04m/female_06.mdl", "models/player/group04m/female_07.mdl", }, description = [[Vous êtes le Médecin Militaire de l'ARI , soignez les troupes et écrasez vos ennemis, Attention , vous serez surêment une cible prioritaire !]], weapons = {"weapon_medkit", "fas2_ragingbull"}, command = "ARIMedecin", max = 3, salary =75, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(125) end
})
TEAM_USArmyGen2 = DarkRP.createJob("[V.I.P]Sous-Général de l'US Army", { color = Color(235, 199, 13, 255), model = {"models/player/usmc_tankcrew01.mdl", "models/player/usmc_tankcrew02.mdl","models/player/usmc_tankcrew05.mdl", "models/player/usmc_tankcrew03.mdl", "models/player/usmc_tankcrew04.mdl"}, description = [[Vous êtes le sous général de l'US Army , aidez le général et gouverner les troupes et écrasez vos ennemis]], weapons = {"fas2_wakizashi", "fas2_rk95"}, command = "UsArmySousGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) end
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce job est réservé au V.I.P !",})
TEAM_Zombies = DarkRP.createJob("Zombies", { color = Color(255, 0, 226, 255), model = {"models/Splinks/KF2/zeds/Player_Clot.mdl", "models/Splinks/KF2/zeds/Player_Cyst.mdl", "Splinks_FK2_Slasher", "models/Splinks/KF2/zeds/Player_Slasher.mdl"}, description = [[Vous êtes un zombies , tuez les humains est votre priorité , ( Vous n'attaquez pas Projet Robot et Projet Peste )]], weapons = {"weapon_sillyzombieclaw"}, command = "Zombies", max = 10, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Monstres", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) ply:SetRunSpeed(205) end
})
TEAM_Infirmière = DarkRP.createJob("[V.I.P]l'Infirmère", { color = Color(255, 0, 226, 255), model = {"models/nurse.mdl"}, description = [[Vous êtes un zombies , tuez les humains est votre priorité , Vous pouvez vous téléporter , on vous appèle l'Infirmière a cause de votre tenue . ( Vous n'attaquez pas Projet Robot et Projet Peste )]], weapons = {"weapon_sillyzombieclaw_v2", "blink"}, command = "nurse", max = 2, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Monstres", PlayerSpawn = function(ply) ply:SetMaxHealth(125) ply:SetHealth(125) ply:SetArmor(25) ply:SetRunSpeed(200) end
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce job est réservé au V.I.P !",})
TEAM_Grimpeur = DarkRP.createJob("Grimpeur", { color = Color(255, 0, 226, 255), model = {"Models/player/pizzaroll/l4dhunter.mdl"}, description = [[Vous êtes un zombies , tuez les humains est votre priorité , Vous pouvez vous escalader les murs .( Vous n'attaquez pas Projet Robot et Projet Peste )]], weapons = {"l4dhunter_swep", "climb_swep2"}, command = "grimpeur", max = 2, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Monstres", PlayerSpawn = function(ply) ply:SetMaxHealth(150) ply:SetHealth(150) ply:SetArmor(25) ply:SetRunSpeed(215) end
})
TEAM_lepotitsa = DarkRP.createJob("Lepotitsa", { color = Color(255, 0, 226, 255), model = {"models/lepotitsa/lepotitsa.mdl"}, description = [[Vous êtes un zombies , tuez les humains est votre priorité , Vous pouvez vous téléporter , on vous appèle l'Infirmière a cause de votre tenue . ( Vous n'attaquez pas Projet Robot et Projet Peste )]], weapons = {"weapon_sillyzombieclaw_v2"}, command = "lepotitsa", max = 3, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Monstres", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(10) ply:SetRunSpeed(195) end
})
TEAM_Tank = DarkRP.createJob("[V.I.P]Tank", { color = Color(255, 0, 226, 255), model = {"Models/player/pizzaroll/l4dtank.mdl"}, description = [[Vous êtes un zombies , tuez les humains est votre priorité ( Vous n'attaquez pas Projet Robot et Projet Peste )]], weapons = {"weapon_sillyzombieclaw_v3"}, command = "tank", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Monstres", PlayerSpawn = function(ply) ply:SetMaxHealth(250) ply:SetHealth(250) ply:SetArmor(100) ply:SetRunSpeed(210) ply:SetModelScale(1.16) end
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce job est réservé au V.I.P !",})
--[[ Generated using: DarkRP | Job Generator https://csite.io/tools/gmod-darkrp-job
--]]
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_Citoyen
--[[---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------]]
GAMEMODE.CivilProtection = { [TEAM_recrueari] = true, [TEAM_agentari] = true, [TEAM_commandoassault] = true, [TEAM_commandosniper] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_ARIGen)
Lua Error :

There is 1 Lua problem!
Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 65.
The best help I can give you is this:

There is an opening '{' bracket at line 46, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 65.

Hints:
- Did you forget a comma?
- All open brackets ({, (, [) must have a matching closing bracket. Are you sure it's there?
- Brackets must be opened and closed in the right order. This will work: ({}), but this won't: ({)}.

------- End of Simplerr error -------
 
G

Gogo33700

Geek suprême
Messages
248
Score réaction
12
Points
110
essaie d'enlever les espaces entre ton job et le customcheck
 
ApeXFRZ

ApeXFRZ

Geek suprême
Messages
420
Score réaction
68
Points
130
TEAM_AncienVet = DarkRP.createJob("[V.I.P]Ancien Vétéran", {
color = Color(17, 235, 13, 255),
model = {"models/l4d/billpm.mdl", "models/l4d/francispm.mdl", "models/l4d/rochellepm.mdl"},
description = [[Vous êtes un ancien Vétéran de l'armé , un pro de la survie , vous savez utilisez les armes comme le M82 et la M60E3 par rapport au simple citoyen. Lors de votre formation , on vous a appris a escalader un peu partout . Vous devez survivre]],
weapons = {"fas2_dv2", "fas2_ragingbull", "climb_swep2"},
command = "AncienVet",
max = 3,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citoyen",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end

customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin", "V.I.P"}, ply:GetNWString("usergroup"))
CustomCheckFailMsg = "Ce job est réservé au V.I.P !",})
end,


Voila, tu avais mis le customcheck fail message après le end ;)
 
Amelisse

Amelisse

Geek suprême
Messages
235
Score réaction
50
Points
100
Essai sa ;)
customCheck = function(ply) return ply:GetNWString("usergroup") == "VIP" or ply:GetNWString("usergroup") == "superadmin" end,
CustomCheckFailMsg = "Job VIP"

oublie pas le de metre une , après le end

PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end,
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
Merci , j'ai réussi .
 
Discord d'entraide
Rejoignz-nous sur Discord