- Initiateur de la discussion
blowjulien
Bambi
- Messages
- 14
- Score réaction
- 0
- Points
- 40
Bonjour ,
J'ai essayé d'ajouter des jobs(emplois)sur Gmod en DarkRp puis j'ai fais un redémarrage puis cela me fait sa :
Puis les emplois :
La config des Jobs :
Jobs :
--[[---------------------------------------------------------------------------
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_TUEURENSERIE = DarkRP.createJob("Tueur en Serie", {
color = Color(232, 17, 17, 255),
model = {"models/player/gman_high.mdl"},
description = [[Tue des personnes ! Mou ah Ah Ah]],
weapons = {"weapon_mac10"},
command = "Tueurenserie",
max = 10,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Gansters",
})
TEAM_BANQUIER = DarkRP.createJob("Banquier", {
color = Color(50, 48, 48, 255),
model = {"models/player/Group01/male_04.mdl"},
description = [[Occupe toi de la tune !]],
weapons = {"weapon_mp5"},
command = "Banquier",
max = 5,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizen",
})
TEAM_MEDECIN = DarkRP.createJob("Medecin", {
color = Color(31, 163, 84, 255),
model = {"models/player/Group03m/male_01.mdl", "models/player/Group03m/.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"},
description = [[Soigne vite les gens !]],
weapons = {"weapon_medikit"},
command = "Medecin",
max = 7,
salary = 120,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizen",
})
TEAM_VOLEUR = DarkRP.createJob("Voleur", {
color = Color(0, 0, 0, 255),
model = {"models/player/odessa.mdl"},
description = [[Vole des objets]],
weapons = {},
command = "Voleur",
max = 5,
salary = 30,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Other",
})
Jobrelated :
-- People often copy jobs. When they do, the GM table does not exist anymore.
-- This line makes the job code work both inside and outside of gamemode files.
-- You should not copy this line into your code.
local GAMEMODE = GAMEMODE or GM
TEAM_CITIZEN = DarkRP.createJob("Citizen", {
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 = [[Tu est un Citoyen.]],
weapons = {},
command = "citizen",
max = 10,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizen",
})
TEAM_TUEURENSERIE = DarkRP.createJob("Tueur en erie", {
color = Color(232, 17, 17, 255),
model = {"models/player/gman_high.mdl"},
description = [[Tue des personnes ! Mou ah Ah Ah]],
weapons = {"weapon_mac10"},
command = "Tueurenserie",
max = 10,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Gansters",
})
TEAM_BANQUIER = DarkRP.createJob("Banquier", {
color = Color(50, 48, 48, 255),
model = {"models/player/Group01/male_04.mdl"},
description = [[Occupe toi de la tune !]],
weapons = {"weapon_mp5"},
command = "Banquier",
max = 5,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizen",
})
TEAM_MEDECIN = DarkRP.createJob("Medecin", {
color = Color(31, 163, 84, 255),
model = {"models/player/Group03m/male_01.mdl","models/player/Group03m/.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"},
description = [[Soigne vite les gens !]],
weapons = {"weapon_medikit"},
command = "Medecin",
max = 7,
salary = 120,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizen",
})
TEAM_VOLEUR = DarkRP.createJob("VOLEUR", {
color = Color(0, 0, 0, 255),
model = {"models/player/odessa.mdl"},
description = [[Vole des objets]],
weapons = {},
command = "Voleur",
max = 5,
salary = 30,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Other",
})
end
-- Compatibility for when default teams are disabled
TEAM_CITIZEN = TEAM_CITIZEN or -1
TEAM_POLICE = TEAM_POLICE or -1
TEAM_GANG = TEAM_GANG or -1
TEAM_MOB = TEAM_MOB or -1
TEAM_GUN = TEAM_GUN or -1
TEAM_MEDIC = TEAM_MEDIC or -1
TEAM_CHIEF = TEAM_CHIEF or -1
TEAM_MAYOR = TEAM_MAYOR or -1
TEAM_HOBO = TEAM_HOBO or -1
AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("Gundealer only", TEAM_GUN)
DarkRP.createAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
DarkRP.createAgenda("Police agenda", {TEAM_MAYOR, TEAM_CHIEF}, {TEAM_POLICE})
DarkRP.createGroupChat(function(ply) return ply:isCP() end)
DarkRP.createGroupChat(TEAM_MOB, TEAM_GANG)
DarkRP.createGroupChat(function(listener, ply) return not ply or ply:Team() == listener:Team() end)
GAMEMODE.DefaultTeam = TEAM_CITIZEN
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
DarkRP.addHitmanTeam(TEAM_MOB)
DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
DarkRP.createCategory{
name = "Citizen",
categorises = "jobs",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 100,
}
DarkRP.createCategory{
name = "CivilProtection",
categorises = "jobs",
startExpanded = true,
color = Color(25, 25, 170, 255),
canSee = fp{fn.Id, true},
sortOrder = 101,
}
DarkRP.createCategory{
name = "Gangsters",
categorises = "jobs",
startExpanded = true,
color = Color(75, 75, 75, 255),
canSee = fp{fn.Id, true},
sortOrder = 101,
}
DarkRP.createCategory{
name = "Other",
categorises = "jobs",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 255,
}
J'ai essayé d'ajouter des jobs(emplois)sur Gmod en DarkRp puis j'ai fais un redémarrage puis cela me fait sa :
Puis les emplois :
La config des Jobs :
Jobs :
--[[---------------------------------------------------------------------------
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_TUEURENSERIE = DarkRP.createJob("Tueur en Serie", {
color = Color(232, 17, 17, 255),
model = {"models/player/gman_high.mdl"},
description = [[Tue des personnes ! Mou ah Ah Ah]],
weapons = {"weapon_mac10"},
command = "Tueurenserie",
max = 10,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Gansters",
})
TEAM_BANQUIER = DarkRP.createJob("Banquier", {
color = Color(50, 48, 48, 255),
model = {"models/player/Group01/male_04.mdl"},
description = [[Occupe toi de la tune !]],
weapons = {"weapon_mp5"},
command = "Banquier",
max = 5,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizen",
})
TEAM_MEDECIN = DarkRP.createJob("Medecin", {
color = Color(31, 163, 84, 255),
model = {"models/player/Group03m/male_01.mdl", "models/player/Group03m/.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"},
description = [[Soigne vite les gens !]],
weapons = {"weapon_medikit"},
command = "Medecin",
max = 7,
salary = 120,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizen",
})
TEAM_VOLEUR = DarkRP.createJob("Voleur", {
color = Color(0, 0, 0, 255),
model = {"models/player/odessa.mdl"},
description = [[Vole des objets]],
weapons = {},
command = "Voleur",
max = 5,
salary = 30,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Other",
})
Jobrelated :
-- People often copy jobs. When they do, the GM table does not exist anymore.
-- This line makes the job code work both inside and outside of gamemode files.
-- You should not copy this line into your code.
local GAMEMODE = GAMEMODE or GM
TEAM_CITIZEN = DarkRP.createJob("Citizen", {
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 = [[Tu est un Citoyen.]],
weapons = {},
command = "citizen",
max = 10,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizen",
})
TEAM_TUEURENSERIE = DarkRP.createJob("Tueur en erie", {
color = Color(232, 17, 17, 255),
model = {"models/player/gman_high.mdl"},
description = [[Tue des personnes ! Mou ah Ah Ah]],
weapons = {"weapon_mac10"},
command = "Tueurenserie",
max = 10,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Gansters",
})
TEAM_BANQUIER = DarkRP.createJob("Banquier", {
color = Color(50, 48, 48, 255),
model = {"models/player/Group01/male_04.mdl"},
description = [[Occupe toi de la tune !]],
weapons = {"weapon_mp5"},
command = "Banquier",
max = 5,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizen",
})
TEAM_MEDECIN = DarkRP.createJob("Medecin", {
color = Color(31, 163, 84, 255),
model = {"models/player/Group03m/male_01.mdl","models/player/Group03m/.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"},
description = [[Soigne vite les gens !]],
weapons = {"weapon_medikit"},
command = "Medecin",
max = 7,
salary = 120,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizen",
})
TEAM_VOLEUR = DarkRP.createJob("VOLEUR", {
color = Color(0, 0, 0, 255),
model = {"models/player/odessa.mdl"},
description = [[Vole des objets]],
weapons = {},
command = "Voleur",
max = 5,
salary = 30,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Other",
})
end
-- Compatibility for when default teams are disabled
TEAM_CITIZEN = TEAM_CITIZEN or -1
TEAM_POLICE = TEAM_POLICE or -1
TEAM_GANG = TEAM_GANG or -1
TEAM_MOB = TEAM_MOB or -1
TEAM_GUN = TEAM_GUN or -1
TEAM_MEDIC = TEAM_MEDIC or -1
TEAM_CHIEF = TEAM_CHIEF or -1
TEAM_MAYOR = TEAM_MAYOR or -1
TEAM_HOBO = TEAM_HOBO or -1
AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("Gundealer only", TEAM_GUN)
DarkRP.createAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
DarkRP.createAgenda("Police agenda", {TEAM_MAYOR, TEAM_CHIEF}, {TEAM_POLICE})
DarkRP.createGroupChat(function(ply) return ply:isCP() end)
DarkRP.createGroupChat(TEAM_MOB, TEAM_GANG)
DarkRP.createGroupChat(function(listener, ply) return not ply or ply:Team() == listener:Team() end)
GAMEMODE.DefaultTeam = TEAM_CITIZEN
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
DarkRP.addHitmanTeam(TEAM_MOB)
DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
DarkRP.createCategory{
name = "Citizen",
categorises = "jobs",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 100,
}
DarkRP.createCategory{
name = "CivilProtection",
categorises = "jobs",
startExpanded = true,
color = Color(25, 25, 170, 255),
canSee = fp{fn.Id, true},
sortOrder = 101,
}
DarkRP.createCategory{
name = "Gangsters",
categorises = "jobs",
startExpanded = true,
color = Color(75, 75, 75, 255),
canSee = fp{fn.Id, true},
sortOrder = 101,
}
DarkRP.createCategory{
name = "Other",
categorises = "jobs",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 255,
}