- Initiateur de la discussion
P
PiZzI
Geek
- Messages
- 14
- Score réaction
- 0
- Points
- 65
Probleme lua voici le jobs.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 jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_BANQUE = DarkRP.createJob("Banquier", {
color = Color(0, 252, 222, 255),
model = {"models/player/magnusson.mdl"},
description = [[Banquier]],
weapons = {"weapon_fists"},
command = "/br",
max = 1,
salary = 356,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})
TEAM_GDM = DarkRP.createJob("Garde du maire", {
color = Color(8, 255, 33, 255),
model = {"models/player/guard_pack/guard_01.mdl, "},
description = [[Garde du maire]],
weapons = {"weapon_fists", "m9k_famas"},
command = "",
max = 4,
salary = 1000,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})
TEAM_VLR = DarkRP.createJob("Voleur", {
color = Color(8, 255, 33, 255),
model = {"models/player/guard_pack/guard_01.mdl, "},
description = [[Voleur]],
weapons = {"weapon_fists", "lockpick"},
command = "",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})
TEAM_GIGN = DarkRP.createJob("GIGN", {
color = Color(175, 8, 234, 255),
model = {"models/player/codmw2/codmw2.mdl"},
description = [[GIGN]],
weapons = {"weapon_fists", "m9k_g36", "colt1911"},
command = "",
max = 5,
salary = 2000,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})
TEAM_CGIGN = DarkRP.createJob("Chef GIGN", {
color = Color(210, 154, 229, 255),
model = {"models/player/codmw2/codmw2.mdl"},
description = [[Chef GIGN]],
weapons = {"weapon_fists", "m9k_g36", "m9k_colt1911"},
command = "",
max = 1,
salary = 2500,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})
--[[---------------------------------------------------------------------------
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)
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_BANQUE = DarkRP.createJob("Banquier", {
color = Color(0, 252, 222, 255),
model = {"models/player/magnusson.mdl"},
description = [[Banquier]],
weapons = {"weapon_fists"},
command = "/br",
max = 1,
salary = 356,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})
TEAM_GDM = DarkRP.createJob("Garde du maire", {
color = Color(8, 255, 33, 255),
model = {"models/player/guard_pack/guard_01.mdl, "},
description = [[Garde du maire]],
weapons = {"weapon_fists", "m9k_famas"},
command = "",
max = 4,
salary = 1000,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})
TEAM_VLR = DarkRP.createJob("Voleur", {
color = Color(8, 255, 33, 255),
model = {"models/player/guard_pack/guard_01.mdl, "},
description = [[Voleur]],
weapons = {"weapon_fists", "lockpick"},
command = "",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})
TEAM_GIGN = DarkRP.createJob("GIGN", {
color = Color(175, 8, 234, 255),
model = {"models/player/codmw2/codmw2.mdl"},
description = [[GIGN]],
weapons = {"weapon_fists", "m9k_g36", "colt1911"},
command = "",
max = 5,
salary = 2000,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})
TEAM_CGIGN = DarkRP.createJob("Chef GIGN", {
color = Color(210, 154, 229, 255),
model = {"models/player/codmw2/codmw2.mdl"},
description = [[Chef GIGN]],
weapons = {"weapon_fists", "m9k_g36", "m9k_colt1911"},
command = "",
max = 1,
salary = 2500,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})
--[[---------------------------------------------------------------------------
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)