Les option admin ne s'affiche pas dans le menu TAB

  • Initiateur de la discussion DevilModding
  • Date de début
  • Initiateur de la discussion
  • Banni
DevilModding

DevilModding

Geek
Messages
416
Score réaction
40
Points
80
Bonjours, j'ai régler beaucoup de probleme récament avec mon serveur, mais il reste encore une chose. Quand je fais TAB et que je clique sur un joueur, j'ai juste mute et un autres truc, j'ai pas les option admin comme give weapon, go to, teleport...
quelqun a une idée pour régler ce problème ?
Merci d'avance.
 
KerwanSumg

KerwanSumg

Geek suprême
Messages
296
Score réaction
77
Points
130
YoP,

Tu dois avoir des erreurs lua, ou alors un addons leak ...
Ou alors un conflit entre deux addons ?-?

Check ta console in-game, t'aura plus de précision ... Et si même apres avoir regarder sa t'aide pas, partage nous ce que ta console dit.
 
  • Initiateur de la discussion
  • Banni
DevilModding

DevilModding

Geek
Messages
416
Score réaction
40
Points
80
KerwanSumg à dit:
YoP,

Tu dois avoir des erreurs lua, ou alors un addons leak ...
Ou alors un conflit entre deux addons ?-?

Check ta console in-game, t'aura plus de précision ... Et si même apres avoir regarder sa t'aide pas, partage nous ce que ta console dit.
ok je vais regarder dans la console.
 
Gauthier Plus

Gauthier Plus

Geek suprême
Messages
717
Score réaction
310
Points
180
Ou tu n'a tous simplement pas mis les autorisations dans | tab--> Server settings '--> autorisations des groupes | un truc du genre j'ai pas le gmod sous les yeux
 
Treadstonepbs

Treadstonepbs

Psychopathe
Messages
657
Score réaction
217
Points
230
DevilModding à dit:
Bonjours, j'ai régler beaucoup de probleme récament avec mon serveur, mais il reste encore une chose. Quand je fais TAB et que je clique sur un joueur, j'ai juste mute et un autres truc, j'ai pas les option admin comme give weapon, go to, teleport...
quelqun a une idée pour régler ce problème ?
Merci d'avance.
Un classique >> fichier jobs.lua a tout les coups.
 
  • Initiateur de la discussion
  • Banni
DevilModding

DevilModding

Geek
Messages
416
Score réaction
40
Points
80
Treadstonepbs à dit:
Un classique >> fichier jobs.lua a tout les coups.
oui job.lui ok mais il faut que je modifie quoi dedans, et dans le server setting dans le menu tab je ne peut acceder a rien cette a dier que quand je clique rien ne se passe, en plus le contours est grisé donc je ne peut pas y accerder.
 
  • Initiateur de la discussion
  • Banni
DevilModding

DevilModding

Geek
Messages
416
Score réaction
40
Points
80
Treadstonepbs à dit:
Un classique >> fichier jobs.lua a tout les coups.
Voila ce que jai dans mon job.lua :

--[[---------------------------------------------------------------------------
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_CITIZEN = DarkRP.createJob("Citoyen", {
color = Color(20, 150, 20, 255),
model = {
"models/player/Group01/Female_01.mdl",
"models/player/Group01/Female_02.mdl",
"models/player/Group01/Female_03.mdl",
"models/player/Group01/Female_04.mdl",
"models/player/Group01/Female_06.mdl",
"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_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"
},
description = [[Vous ête un Citoyen vous dever respecter les lois.]],
weapons = {},
command = "citizen",
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
})

TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(25, 25, 170, 255),
model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
description = [[Vous ête un policier, vous devez faire respecter la lois, vous avez droit au controle
de routine si quelque chose vous parrais anormal.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 4,
salary = 150
admin = 0,
vote = false,
hasLicense = true,
ammo = {
["pistol"] = 90,
},
category = "Policer",
})


--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZEN
--[[---------------------------------------------------------------------------
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_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
 
Malcolm

Malcolm

Psychopathe
Messages
1 096
Score réaction
262
Points
280
DevilModding à dit:
Voila ce que jai dans mon job.lua :

--[[---------------------------------------------------------------------------
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_CITIZEN = DarkRP.createJob("Citoyen", {
color = Color(20, 150, 20, 255),
model = {
"models/player/Group01/Female_01.mdl",
"models/player/Group01/Female_02.mdl",
"models/player/Group01/Female_03.mdl",
"models/player/Group01/Female_04.mdl",
"models/player/Group01/Female_06.mdl",
"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_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"
},
description = [[Vous ête un Citoyen vous dever respecter les lois.]],
weapons = {},
command = "citizen",
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
})

TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(25, 25, 170, 255),
model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
description = [[Vous ête un policier, vous devez faire respecter la lois, vous avez droit au controle
de routine si quelque chose vous parrais anormal.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 4,
salary = 150
admin = 0,
vote = false,
hasLicense = true,
ammo = {
["pistol"] = 90,
},
category = "Policer",
})


--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZEN
--[[---------------------------------------------------------------------------
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_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
Je crois que le "TEAM_POLICE" existe déjà de base, faut que tu le désactive dans le disable defaults je crois.
 
Dernière édition:
  • Initiateur de la discussion
  • Banni
DevilModding

DevilModding

Geek
Messages
416
Score réaction
40
Points
80
malcolm2003 à dit:
Je crois que le "TEAM_POLICE existe déjà de base, faut que tu le désactive dans le disable defaults je crois.
ok merci mais je ne vois pas comment ca va résoudre le probleme du menu tab xd :) mais je vais le faire cest bizzard, a chaque fois regarder plusieur forum avec la meme question et ben devine quoi, ya jamais eu une réponse concrete et fonctionel. bref si quelqun a une idée :)
 
Malcolm

Malcolm

Psychopathe
Messages
1 096
Score réaction
262
Points
280
DevilModding à dit:
ok merci mais je ne vois pas comment ca va résoudre le probleme du menu tab xd :) mais je vais le faire cest bizzard, a chaque fois regarder plusieur forum avec la meme question et ben devine quoi, ya jamais eu une réponse concrete et fonctionel. bref si quelqun a une idée :)
Je suis quasi sur que c'est ça ^^
 
Treadstonepbs

Treadstonepbs

Psychopathe
Messages
657
Score réaction
217
Points
230
DevilModding à dit:
ok merci mais je ne vois pas comment ca va résoudre le probleme du menu tab xd :) mais je vais le faire cest bizzard, a chaque fois regarder plusieur forum avec la meme question et ben devine quoi, ya jamais eu une réponse concrete et fonctionel. bref si quelqun a une idée :)
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 jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_CHOMEUR = DarkRP.createJob("Chomeur", { color = Color(20, 255, 0, 255), model = {"models/player/eli.mdl", "models/player/Group01/Female_01.mdl", "models/player/Group01/Female_02.mdl", "models/player/Group01/Female_03.mdl", "models/player/Group01/Female_04.mdl", "models/player/Group01/Female_06.mdl", "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_06.mdl", "models/player/Group01/Male_07.mdl", "models/player/Group01/Male_08.mdl", "models/player/Group01/Male_09.mdl", "models/player/barney.mdl", "models/player/alyx.mdl", "models/player/mossman.mdl", "models/player/monk.mdl", "models/player/mossman_arctic.mdl", "models/player/odessa.mdl", "models/player/gman_high.mdl", "models/player/kleiner.mdl", "models/player/p2_chell.mdl", "models/player/corpse1.mdl"}, description = [[Tu fais parti des esclaves, tu es sous les ordres des Forces de l'ordre]], weapons = {"weapon_arc_atmcard", "weapon_fists", "itemstore_pickup"}, command = "chomeur", max = 0, salary = 10, admin = 0, vote = false, hasLicense = false, candemote = false, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_HOBO = DarkRP.createJob("S.D.F", { color = Color(20, 255, 0, 255), model = {"models/player/corpse1.mdl", "models/player/charple.mdl"}, description = [[Vous avez perdu toutes vos économies, maisons etc.. ]], weapons = {"weapon_fists", "weapon_bugbait", "weapon_arc_atmcard", "weapon_gpee"}, command = "mendiant", max = 2, salary = 1, admin = 0, vote = false, hasLicense = false, candemote = false, hobo = true,
})
TEAM_MAFIA = DarkRP.createJob("Mafieu", { color = Color(20, 255, 0, 255), model = {"models/player/barney.mdl", "models/player/alyx.mdl"}, description = [[Tu fais parti de la légion des rebelles, ton but est de renverser le pouvoir et contrôler le monde]], weapons = {"wep_jack_job_drpstungun", "weapon_cuff_elastic", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_atmhack", "itemstore_pickup"}, command = "mafia", max = 0, salary = 10, admin = 0, vote = true, hasLicense = false, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_DON = DarkRP.createJob("Don de la Mafia", { color = Color(20, 255, 0, 255), model = {"models/player/odessa.mdl"}, description = [[Tu fais parti de la légion des rebelles, ton but est de renverser le pouvoir et contrôler le monde]], weapons = {"wep_jack_job_drpstungun", "weapon_cuff_elastic", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_atmhack", "itemstore_pickup"}, command = "don", max = 1, salary = 10, admin = 0, vote = true, hasLicense = false, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_TUEURGAGE = DarkRP.createJob("Tueur a Gages", { color = Color(20, 255, 0, 255), model = {"models/player/gman_high.mdl"}, description = [[Prenez les contrats de vos clients, exterminez les, sans faire de taches ou d'imprévues.]], weapons = {"weapon_fists", "weapon_arc_atmcard", "m9k_barret_m82"}, command = "tueuragages", max = 1, salary = 10, admin = 0, vote = false, hasLicense = true, PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) if killer:IsPlayer() then DarkRP.notifyAll(0, 4, "Tu as été tuer donc tu es redevenu(e) un Chomeur.") else DarkRP.notifyAll(0, 4, "Le Tueur à Gages a été tué et donc a été rétrograder.") end end
})
TEAM_YAMA = DarkRP.createJob("Yamakasi", { color = Color(20, 255, 0, 255), model = {"models/player/p2_chell.mdl"}, description = [[]], weapons = {"climb_swep2"}, command = "yama", max = 2, salary = 10, admin = 0, vote = false, hasLicense = false, candemote = true,
})
TEAM_NOIR = DarkRP.createJob("Vendeur d'armes", { color = Color(20, 255, 0, 255), model = {"models/player/guerilla.mdl"}, description = [[Tu es vendeur d'armes, tu vends des armes LEGENDAIRES]], weapons = {"weapon_fists", "itemstore_pickup", "weapon_arc_atmcard"}, command = "légend", max = 2, salary = 10, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_ULTIM = DarkRP.createJob("Quincailler", { color = Color(20, 255, 0, 255), model = {"models/player/leet.mdl"}, description = [[Tu es quincailler, tu vends des grenades ULTIMES]], weapons = {"weapon_fists", "weapon_arc_atmcard", "itemstore_pickup"}, command = "ultim", max = 2, salary = 10, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_SOIN = DarkRP.createJob("Medecin", { color = Color(20, 255, 0, 255), model = {"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/female_01.mdl", "models/player/Group03m/female_02.mdl", "models/player/Group03m/female_03.mdl", "models/player/Group03m/female_04.mdl"}, description = [[Tu es Medecin, tu soignes les gens]], weapons = {"weapon_fists", "itemstore_pickup", "weapon_arc_atmcard"}, command = "medecin", max = 3, salary = 10, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = true, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_BUCH = DarkRP.createJob("Bucheron", { color = Color(20, 255, 0, 255), model = {"models/player/Group01/male_08.mdl", "models/player/Group01/male_06.mdl", "models/player/Group01/male_09.mdl"}, description = [[Votre rôle consiste à couper du bois et l'ammener à la scierie dans votre wagon!]], weapons = {"swm_chopping_axe"}, command = "bucheron", max = 4, salary = 10, admin = 0, vote = false, hasLicense = false, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_MINEUR = DarkRP.createJob("Mineur", { color = Color(20, 255, 0, 255), model = {"models/player/Group01/male_08.mdl", "models/player/Group01/male_06.mdl", "models/player/Group01/male_09.mdl"}, description = [[Vous êtes Mineur vous devez miner des minerais]], weapons = {"mgs_pickaxe"}, command = "mineur", max = 4, salary = 10, admin = 0, vote = false, hasLicense = false, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
if not DarkRP.disabledDefaults["modules"]["hungermod"] then TEAM_COOK = DarkRP.createJob("Cuisinier", { color = Color(20, 255, 0, 255), model = {"models/player/Group01/Female_02.mdl", "models/player/Group01/Female_03.mdl", "models/player/Group01/Female_04.mdl", "models/player/Group01/Female_06.mdl", "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_06.mdl", "models/player/Group01/Male_07.mdl", "models/player/Group01/Male_08.mdl", "models/player/Group01/Male_09.mdl"}, description = [[En tant que cuisinière, c'est votre responsabilité de nourrir les habitants de votre ville.
Vous êtes dans l'obligation de mettre un microonde en ville.
Préparez des plats en avance pour ne pas être débordée.]], weapons = {}, command = "cook", max = 2, salary = 10, admin = 0, vote = false, category = "Citizens", hasLicense = false, cook = true })
end
TEAM_UN = DarkRP.createJob("Policier", { color = Color(20, 255, 0, 255), model = {"models/player/combine_soldier.mdl"}, description = [[Tu fais parti des Policiers, tu es sous les ordres du Maire]], weapons = {"stunstick","door_ram","weaponchecker", "itemstore_pickup", "weapon_cuff_police","weapon_stungun","policebadgewallet", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "weapon_fists", "weapon_arc_atmcard", "weapon_stungun"}, command = "section1", max = 6, salary = 50, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = true, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_DEUX = DarkRP.createJob("Gendarme", { color = Color(20, 255, 0, 255), model = {"models/player/combine_soldier_prisonguard.mdl"}, description = [[Tu fais parti des Policiers, tu es sous les ordres du Maire]], weapons = {"stunstick", "itemstore_pickup", "door_ram","weaponchecker","weapon_cuff_police","weapon_stungun","policebadgewallet", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "weapon_fists", "weapon_arc_atmcard", "weapon_stungun"}, command = "section2", max = 6, salary = 50, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = true, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_TROIS = DarkRP.createJob("Commissaire", { color = Color(20, 255, 0, 255), model = {"models/player/combine_super_soldier.mdl"}, description = [[Tu fais parti des Policiers, tu es sous les ordres du Maire]], weapons = {"stunstick","door_ram","weaponchecker","itemstore_pickup","weapon_cuff_police","weapon_stungun","policebadgewallet", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "weapon_fists", "weapon_arc_atmcard", "weapon_stungun", "m9k_magpulpdr"}, command = "section3", max = 1, salary = 50, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = true, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_SIX = DarkRP.createJob("Section B.A.C", { color = Color(20, 255, 0, 255), model = {"models/player/eli.mdl", "models/player/Group01/Female_01.mdl", "models/player/Group01/Female_02.mdl", "models/player/Group01/Female_03.mdl", "models/player/Group01/Female_04.mdl", "models/player/Group01/Female_06.mdl", "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_06.mdl", "models/player/Group01/Male_07.mdl", "models/player/Group01/Male_08.mdl", "models/player/Group01/Male_09.mdl", "models/player/barney.mdl", "models/player/alyx.mdl", "models/player/mossman.mdl", "models/player/monk.mdl", "models/player/mossman_arctic.mdl", "models/player/odessa.mdl", "models/player/gman_high.mdl", "models/player/kleiner.mdl", "models/player/p2_chell.mdl", "models/player/corpse1.mdl"}, description = [[Tu fais parti des Policiers, tu es sous les ordres du Maire, MAIS... tu es infiltré]], weapons = {"itemstore_pickup","stunstick","door_ram","weaponchecker","weapon_cuff_police","weapon_stungun","policebadgewallet", "arrest_stick", "unarrest_stick", "wep_jack_job_drpstungun", "m9k_m92beretta", "weapon_cuff_elastic", "weapon_fists", "weapon_arc_atmcard", "weapon_stungun"}, command = "section6", max = 6, salary = 50, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = true, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_CHEF = DarkRP.createJob("G.I.G.N", { color = Color(20, 255, 0, 255), model = {"models/player/riot.mdl"}, description = [[Tu fais parti des Policiers, tu es sous les ordres du Maire]], weapons = {"itemstore_pickup","stunstick","door_ram","weaponchecker","weapon_cuff_police","weapon_stungun","policebadgewallet", "arrest_stick", "unarrest_stick", "m9k_magpulpdr", "m9k_m92beretta", "weapon_fists", "m9k_intervention", "weapon_arc_atmcard", "m9k_m3", "weapon_stungun"}, command = "chef", max = 6, salary = 50, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = true, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_MAIRE = DarkRP.createJob("Maire", { color = Color(20, 255, 0, 255), model = {"models/breen.mdl"}, description = [[Tu es le roi du monde, tu peux contrôler TOUT !]], weapons = {"itemstore_pickup","weapon_stungun", "weapon_fists", "weapon_arc_atmcard"}, command = "maire", max = 1, salary = 100, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = false, mayor = true, hobo = false, cook = false, category = "Citizens", PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) if killer:IsPlayer() then DarkRP.notifyAll(0, 4, "Le Maire a été tué et est donc rétrograder après sa mort.") else DarkRP.notifyAll(0, 4, "Le Maire est mort et donc a été rétrogradé.") end end
})
TEAM_ADMIN = DarkRP.createJob ("Administrateur", { color = Color(20, 255, 0, 255), model = "models/player/anon/anon.mdl", description = [[Admin.]], weapons = {""}, command = "/admin", max = 0, salary = 100, admin = 0, vote = false, hasLicense = false, category = "Citizens", customCheck = function(ply) return table.HasValue({"Fondateur", "Codeur", "Builder", "Responsable-Grades", "superadmin", "Chef Admin", "admin", "Chef Modo", "Modérateur", "ModoTest", "Helpeur"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce métier est pour les Administrateurs du RP pour Débutants !",
})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CHOMEUR
--[[---------------------------------------------------------------------------
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_UN] = true, [TEAM_DEUX] = true, [TEAM_TROIS] = true, [TEAM_SIX] = true, [TEAM_CHEF] = true, [TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_TUEURGAGE)
T'as juste a modif ce que tu veut.
 
  • Initiateur de la discussion
  • Banni
DevilModding

DevilModding

Geek
Messages
416
Score réaction
40
Points
80
Treadstonepbs à dit:
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 jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_CHOMEUR = DarkRP.createJob("Chomeur", { color = Color(20, 255, 0, 255), model = {"models/player/eli.mdl", "models/player/Group01/Female_01.mdl", "models/player/Group01/Female_02.mdl", "models/player/Group01/Female_03.mdl", "models/player/Group01/Female_04.mdl", "models/player/Group01/Female_06.mdl", "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_06.mdl", "models/player/Group01/Male_07.mdl", "models/player/Group01/Male_08.mdl", "models/player/Group01/Male_09.mdl", "models/player/barney.mdl", "models/player/alyx.mdl", "models/player/mossman.mdl", "models/player/monk.mdl", "models/player/mossman_arctic.mdl", "models/player/odessa.mdl", "models/player/gman_high.mdl", "models/player/kleiner.mdl", "models/player/p2_chell.mdl", "models/player/corpse1.mdl"}, description = [[Tu fais parti des esclaves, tu es sous les ordres des Forces de l'ordre]], weapons = {"weapon_arc_atmcard", "weapon_fists", "itemstore_pickup"}, command = "chomeur", max = 0, salary = 10, admin = 0, vote = false, hasLicense = false, candemote = false, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_HOBO = DarkRP.createJob("S.D.F", { color = Color(20, 255, 0, 255), model = {"models/player/corpse1.mdl", "models/player/charple.mdl"}, description = [[Vous avez perdu toutes vos économies, maisons etc.. ]], weapons = {"weapon_fists", "weapon_bugbait", "weapon_arc_atmcard", "weapon_gpee"}, command = "mendiant", max = 2, salary = 1, admin = 0, vote = false, hasLicense = false, candemote = false, hobo = true,
})
TEAM_MAFIA = DarkRP.createJob("Mafieu", { color = Color(20, 255, 0, 255), model = {"models/player/barney.mdl", "models/player/alyx.mdl"}, description = [[Tu fais parti de la légion des rebelles, ton but est de renverser le pouvoir et contrôler le monde]], weapons = {"wep_jack_job_drpstungun", "weapon_cuff_elastic", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_atmhack", "itemstore_pickup"}, command = "mafia", max = 0, salary = 10, admin = 0, vote = true, hasLicense = false, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_DON = DarkRP.createJob("Don de la Mafia", { color = Color(20, 255, 0, 255), model = {"models/player/odessa.mdl"}, description = [[Tu fais parti de la légion des rebelles, ton but est de renverser le pouvoir et contrôler le monde]], weapons = {"wep_jack_job_drpstungun", "weapon_cuff_elastic", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_atmhack", "itemstore_pickup"}, command = "don", max = 1, salary = 10, admin = 0, vote = true, hasLicense = false, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_TUEURGAGE = DarkRP.createJob("Tueur a Gages", { color = Color(20, 255, 0, 255), model = {"models/player/gman_high.mdl"}, description = [[Prenez les contrats de vos clients, exterminez les, sans faire de taches ou d'imprévues.]], weapons = {"weapon_fists", "weapon_arc_atmcard", "m9k_barret_m82"}, command = "tueuragages", max = 1, salary = 10, admin = 0, vote = false, hasLicense = true, PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) if killer:IsPlayer() then DarkRP.notifyAll(0, 4, "Tu as été tuer donc tu es redevenu(e) un Chomeur.") else DarkRP.notifyAll(0, 4, "Le Tueur à Gages a été tué et donc a été rétrograder.") end end
})
TEAM_YAMA = DarkRP.createJob("Yamakasi", { color = Color(20, 255, 0, 255), model = {"models/player/p2_chell.mdl"}, description = [[]], weapons = {"climb_swep2"}, command = "yama", max = 2, salary = 10, admin = 0, vote = false, hasLicense = false, candemote = true,
})
TEAM_NOIR = DarkRP.createJob("Vendeur d'armes", { color = Color(20, 255, 0, 255), model = {"models/player/guerilla.mdl"}, description = [[Tu es vendeur d'armes, tu vends des armes LEGENDAIRES]], weapons = {"weapon_fists", "itemstore_pickup", "weapon_arc_atmcard"}, command = "légend", max = 2, salary = 10, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_ULTIM = DarkRP.createJob("Quincailler", { color = Color(20, 255, 0, 255), model = {"models/player/leet.mdl"}, description = [[Tu es quincailler, tu vends des grenades ULTIMES]], weapons = {"weapon_fists", "weapon_arc_atmcard", "itemstore_pickup"}, command = "ultim", max = 2, salary = 10, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_SOIN = DarkRP.createJob("Medecin", { color = Color(20, 255, 0, 255), model = {"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/female_01.mdl", "models/player/Group03m/female_02.mdl", "models/player/Group03m/female_03.mdl", "models/player/Group03m/female_04.mdl"}, description = [[Tu es Medecin, tu soignes les gens]], weapons = {"weapon_fists", "itemstore_pickup", "weapon_arc_atmcard"}, command = "medecin", max = 3, salary = 10, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = true, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_BUCH = DarkRP.createJob("Bucheron", { color = Color(20, 255, 0, 255), model = {"models/player/Group01/male_08.mdl", "models/player/Group01/male_06.mdl", "models/player/Group01/male_09.mdl"}, description = [[Votre rôle consiste à couper du bois et l'ammener à la scierie dans votre wagon!]], weapons = {"swm_chopping_axe"}, command = "bucheron", max = 4, salary = 10, admin = 0, vote = false, hasLicense = false, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_MINEUR = DarkRP.createJob("Mineur", { color = Color(20, 255, 0, 255), model = {"models/player/Group01/male_08.mdl", "models/player/Group01/male_06.mdl", "models/player/Group01/male_09.mdl"}, description = [[Vous êtes Mineur vous devez miner des minerais]], weapons = {"mgs_pickaxe"}, command = "mineur", max = 4, salary = 10, admin = 0, vote = false, hasLicense = false, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Citizens",
})
if not DarkRP.disabledDefaults["modules"]["hungermod"] then TEAM_COOK = DarkRP.createJob("Cuisinier", { color = Color(20, 255, 0, 255), model = {"models/player/Group01/Female_02.mdl", "models/player/Group01/Female_03.mdl", "models/player/Group01/Female_04.mdl", "models/player/Group01/Female_06.mdl", "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_06.mdl", "models/player/Group01/Male_07.mdl", "models/player/Group01/Male_08.mdl", "models/player/Group01/Male_09.mdl"}, description = [[En tant que cuisinière, c'est votre responsabilité de nourrir les habitants de votre ville.
Vous êtes dans l'obligation de mettre un microonde en ville.
Préparez des plats en avance pour ne pas être débordée.]], weapons = {}, command = "cook", max = 2, salary = 10, admin = 0, vote = false, category = "Citizens", hasLicense = false, cook = true })
end
TEAM_UN = DarkRP.createJob("Policier", { color = Color(20, 255, 0, 255), model = {"models/player/combine_soldier.mdl"}, description = [[Tu fais parti des Policiers, tu es sous les ordres du Maire]], weapons = {"stunstick","door_ram","weaponchecker", "itemstore_pickup", "weapon_cuff_police","weapon_stungun","policebadgewallet", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "weapon_fists", "weapon_arc_atmcard", "weapon_stungun"}, command = "section1", max = 6, salary = 50, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = true, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_DEUX = DarkRP.createJob("Gendarme", { color = Color(20, 255, 0, 255), model = {"models/player/combine_soldier_prisonguard.mdl"}, description = [[Tu fais parti des Policiers, tu es sous les ordres du Maire]], weapons = {"stunstick", "itemstore_pickup", "door_ram","weaponchecker","weapon_cuff_police","weapon_stungun","policebadgewallet", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "weapon_fists", "weapon_arc_atmcard", "weapon_stungun"}, command = "section2", max = 6, salary = 50, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = true, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_TROIS = DarkRP.createJob("Commissaire", { color = Color(20, 255, 0, 255), model = {"models/player/combine_super_soldier.mdl"}, description = [[Tu fais parti des Policiers, tu es sous les ordres du Maire]], weapons = {"stunstick","door_ram","weaponchecker","itemstore_pickup","weapon_cuff_police","weapon_stungun","policebadgewallet", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "weapon_fists", "weapon_arc_atmcard", "weapon_stungun", "m9k_magpulpdr"}, command = "section3", max = 1, salary = 50, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = true, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_SIX = DarkRP.createJob("Section B.A.C", { color = Color(20, 255, 0, 255), model = {"models/player/eli.mdl", "models/player/Group01/Female_01.mdl", "models/player/Group01/Female_02.mdl", "models/player/Group01/Female_03.mdl", "models/player/Group01/Female_04.mdl", "models/player/Group01/Female_06.mdl", "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_06.mdl", "models/player/Group01/Male_07.mdl", "models/player/Group01/Male_08.mdl", "models/player/Group01/Male_09.mdl", "models/player/barney.mdl", "models/player/alyx.mdl", "models/player/mossman.mdl", "models/player/monk.mdl", "models/player/mossman_arctic.mdl", "models/player/odessa.mdl", "models/player/gman_high.mdl", "models/player/kleiner.mdl", "models/player/p2_chell.mdl", "models/player/corpse1.mdl"}, description = [[Tu fais parti des Policiers, tu es sous les ordres du Maire, MAIS... tu es infiltré]], weapons = {"itemstore_pickup","stunstick","door_ram","weaponchecker","weapon_cuff_police","weapon_stungun","policebadgewallet", "arrest_stick", "unarrest_stick", "wep_jack_job_drpstungun", "m9k_m92beretta", "weapon_cuff_elastic", "weapon_fists", "weapon_arc_atmcard", "weapon_stungun"}, command = "section6", max = 6, salary = 50, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = true, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_CHEF = DarkRP.createJob("G.I.G.N", { color = Color(20, 255, 0, 255), model = {"models/player/riot.mdl"}, description = [[Tu fais parti des Policiers, tu es sous les ordres du Maire]], weapons = {"itemstore_pickup","stunstick","door_ram","weaponchecker","weapon_cuff_police","weapon_stungun","policebadgewallet", "arrest_stick", "unarrest_stick", "m9k_magpulpdr", "m9k_m92beretta", "weapon_fists", "m9k_intervention", "weapon_arc_atmcard", "m9k_m3", "weapon_stungun"}, command = "chef", max = 6, salary = 50, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = true, mayor = false, hobo = false, cook = false, category = "Citizens",
})
TEAM_MAIRE = DarkRP.createJob("Maire", { color = Color(20, 255, 0, 255), model = {"models/breen.mdl"}, description = [[Tu es le roi du monde, tu peux contrôler TOUT !]], weapons = {"itemstore_pickup","weapon_stungun", "weapon_fists", "weapon_arc_atmcard"}, command = "maire", max = 1, salary = 100, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = false, mayor = true, hobo = false, cook = false, category = "Citizens", PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) if killer:IsPlayer() then DarkRP.notifyAll(0, 4, "Le Maire a été tué et est donc rétrograder après sa mort.") else DarkRP.notifyAll(0, 4, "Le Maire est mort et donc a été rétrogradé.") end end
})
TEAM_ADMIN = DarkRP.createJob ("Administrateur", { color = Color(20, 255, 0, 255), model = "models/player/anon/anon.mdl", description = [[Admin.]], weapons = {""}, command = "/admin", max = 0, salary = 100, admin = 0, vote = false, hasLicense = false, category = "Citizens", customCheck = function(ply) return table.HasValue({"Fondateur", "Codeur", "Builder", "Responsable-Grades", "superadmin", "Chef Admin", "admin", "Chef Modo", "Modérateur", "ModoTest", "Helpeur"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ce métier est pour les Administrateurs du RP pour Débutants !",
})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CHOMEUR
--[[---------------------------------------------------------------------------
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_UN] = true, [TEAM_DEUX] = true, [TEAM_TROIS] = true, [TEAM_SIX] = true, [TEAM_CHEF] = true, [TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_TUEURGAGE)
T'as juste a modif ce que tu veut.
merci quand meme mais ca ne fonctionne toujours pas.
 
Treadstonepbs

Treadstonepbs

Psychopathe
Messages
657
Score réaction
217
Points
230
DevilModding à dit:
merci quand meme mais ca ne fonctionne toujours pas.
L'erreur provient d'autres part alors... Tu devrais faire une réinstallation complète. Si tu bloque a ça c'est pas bon signe déjà.
 
  • Initiateur de la discussion
  • Banni
DevilModding

DevilModding

Geek
Messages
416
Score réaction
40
Points
80
Treadstonepbs à dit:
L'erreur provient d'autres part alors... Tu devrais faire une réinstallation complète. Si tu bloque a ça c'est pas bon signe déjà.
hier jai dejas tout reinstaller pour voir si les option se mettait mais non, les option admin ny etait pas alors que je n'avais rien modifier
 
Treadstonepbs

Treadstonepbs

Psychopathe
Messages
657
Score réaction
217
Points
230
DevilModding à dit:
hier jai dejas tout reinstaller pour voir si les option se mettait mais non, les option admin ny etait pas alors que je n'avais rien modifier
Tu as bien installer ulx/ulib ?
Tu as créer un grade Fondateur ?
 
Discord d'entraide
Rejoignz-nous sur Discord