- Initiateur de la discussion
Rubys
Geek
- Messages
- 51
- Score réaction
- 0
- Points
- 95
Bonjour ,je suis en ce moment sur un travaille de serveur Darkrp mais j'ai un problème .Mon problème s'est que je n'arrive pas rajouter les jobs dans jobs.lua .Je m'ai la police sa marche ,puis je m'ai civil sa amrche ,puis je met swat (swat ne ce met pas mais les autres marchent) ,puis les autres ne marchent plus ,puis ils marchent donc j'en rajoute (agent de secu et chef des swat) et plus rien ne marche et j'ai éssayé plin de fois de réparer mais SA NE MARCHE PLUS !
alors je vais vous passer mon fichier jobs.lua et si une personne arrive à réparer mon problème je lui donne 1 tokens mais faut que tout les métiers marchent et que après quand j'en crée un nouveau il marche si la personne m'a bien expliquer .
Voila merci (je présise de ne pas recopier les idées de ces métiers !Ce sont des idées qui seront mise dans une entreprise (serveur darkrp) )
--[[---------------------------------------------------------------------------
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
--[[---------------------------------------------------------------------------
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_POLICE = DarkRP.createJob("Policier", {
color = Color(25, 25, 170, 255),
model = {"models/player/uk_police/uk_police_01.mdl","models/player/uk_police/uk_police_02.mdl","models/player/uk_police/uk_police_03.mdl","models/player/uk_police/uk_police_03_64.mdl","models/player/uk_police/uk_police_03_skin1_64.mdl","models/player/uk_police/uk_police_04.mdl"},
description = [[Vous faîtes respecter l'ordre et la sécurité de la ville !]],
weapons = {"FAS2_OTS33", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "keys"},
command = "Police",
max = 5,
salary = 17,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})
TEAM_FORCE = DarkRP.createJob("Force spéciale", {
color = Color(25, 25, 170, 255),
model = {"models/rusty/rpd_swat_04.mdl", "models/rusty/rpd_swat_s.mdl"},
description = [[Vous vous occupez des gros Problèmes de la ville (drogue, fusillade, braquage ...]],
weapons = {"FAS2_M4A1", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "keys"},
command = "Force spéciale",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})
TEAM_CHIEF = DarkRP.createJob("Chef des forces spéciales", {
color = Color(25, 25, 170, 255),
model = {"models/jbarnes/characters/hrcop.mdl"},
description = [[Vous dirigez les interventions.]],
weapons = {"FAS2_M3S90", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "keys"},
command = "Chef des forces spéciales",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})
TEAM_CIVIL = DarkRP.createJob("Civile", {
color = Color(255, 127, 80, 255),
model = {"Rebel Male 1", "Rebel Male 2", "Rebel Male 3", "Rebel Male 4", "Rebel Male 5", "Rebel Male 6", "Rebel Male 7", "Rebel Male 8", "Rebel Male 9", "Rebel Female 1", "Rebel Female 2", "Rebel Female 3", "Rebel Female 4", "Rebel Female 6", "Rebel Female 7", "Refugee Male 1", "Refugee Male 2", "Refugee Male 3", "Refugee Male 4", "Refugee Male 5", "Refugee Male 6", "Refugee Male 7", "Refugee Male 8", "Refugee Male 9", "Refugee Female 1", "Refugee Female 2", "Refugee Female 3", "Refugee Female 4", "Refugee Female 6", "Refugee Female 7", "Citizen Male 1", "Citizen Male 2", "Citizen Female 2", "Factory Male 3", "Factory Female 2"},
description = [[Vous êtes une personne normale ,vous choisissez votre vie - une vie de civil gentil ou une vie de civil criminel ! (Lire les règles avant d'utiliser).]],
weapons = {"FAS2_DV2", "keys"},
command = "Civile",
max = 15,
salary = 7,
admin = 0,
vote = true,
hasLicense = false,
}
})
TEAM_AGENT = DarkRP.createJob("Agent de sécurité", {
color = Color(0, 255, 255, 255),
model = {"models/suits_07.mdl"},
description = [[Vous assurez la sécurité de la personne ou de son habitation qui vous a engagé.]],
weapons = {"FAS2_DEAGLE", "weaponchecker", "keys"},
command = "Agent de sécurité",
max = 3,
salary = 13,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZENS
--[[---------------------------------------------------------------------------
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)
Merci à aurelienchailloux d'avoir fait tout son possible pour m'aider avec ce poste
1 TOKENS vs l(es)'erreur(s) réparé
alors je vais vous passer mon fichier jobs.lua et si une personne arrive à réparer mon problème je lui donne 1 tokens mais faut que tout les métiers marchent et que après quand j'en crée un nouveau il marche si la personne m'a bien expliquer .
Voila merci (je présise de ne pas recopier les idées de ces métiers !Ce sont des idées qui seront mise dans une entreprise (serveur darkrp) )
--[[---------------------------------------------------------------------------
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
--[[---------------------------------------------------------------------------
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_POLICE = DarkRP.createJob("Policier", {
color = Color(25, 25, 170, 255),
model = {"models/player/uk_police/uk_police_01.mdl","models/player/uk_police/uk_police_02.mdl","models/player/uk_police/uk_police_03.mdl","models/player/uk_police/uk_police_03_64.mdl","models/player/uk_police/uk_police_03_skin1_64.mdl","models/player/uk_police/uk_police_04.mdl"},
description = [[Vous faîtes respecter l'ordre et la sécurité de la ville !]],
weapons = {"FAS2_OTS33", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "keys"},
command = "Police",
max = 5,
salary = 17,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})
TEAM_FORCE = DarkRP.createJob("Force spéciale", {
color = Color(25, 25, 170, 255),
model = {"models/rusty/rpd_swat_04.mdl", "models/rusty/rpd_swat_s.mdl"},
description = [[Vous vous occupez des gros Problèmes de la ville (drogue, fusillade, braquage ...]],
weapons = {"FAS2_M4A1", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "keys"},
command = "Force spéciale",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})
TEAM_CHIEF = DarkRP.createJob("Chef des forces spéciales", {
color = Color(25, 25, 170, 255),
model = {"models/jbarnes/characters/hrcop.mdl"},
description = [[Vous dirigez les interventions.]],
weapons = {"FAS2_M3S90", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "keys"},
command = "Chef des forces spéciales",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})
TEAM_CIVIL = DarkRP.createJob("Civile", {
color = Color(255, 127, 80, 255),
model = {"Rebel Male 1", "Rebel Male 2", "Rebel Male 3", "Rebel Male 4", "Rebel Male 5", "Rebel Male 6", "Rebel Male 7", "Rebel Male 8", "Rebel Male 9", "Rebel Female 1", "Rebel Female 2", "Rebel Female 3", "Rebel Female 4", "Rebel Female 6", "Rebel Female 7", "Refugee Male 1", "Refugee Male 2", "Refugee Male 3", "Refugee Male 4", "Refugee Male 5", "Refugee Male 6", "Refugee Male 7", "Refugee Male 8", "Refugee Male 9", "Refugee Female 1", "Refugee Female 2", "Refugee Female 3", "Refugee Female 4", "Refugee Female 6", "Refugee Female 7", "Citizen Male 1", "Citizen Male 2", "Citizen Female 2", "Factory Male 3", "Factory Female 2"},
description = [[Vous êtes une personne normale ,vous choisissez votre vie - une vie de civil gentil ou une vie de civil criminel ! (Lire les règles avant d'utiliser).]],
weapons = {"FAS2_DV2", "keys"},
command = "Civile",
max = 15,
salary = 7,
admin = 0,
vote = true,
hasLicense = false,
}
})
TEAM_AGENT = DarkRP.createJob("Agent de sécurité", {
color = Color(0, 255, 255, 255),
model = {"models/suits_07.mdl"},
description = [[Vous assurez la sécurité de la personne ou de son habitation qui vous a engagé.]],
weapons = {"FAS2_DEAGLE", "weaponchecker", "keys"},
command = "Agent de sécurité",
max = 3,
salary = 13,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZENS
--[[---------------------------------------------------------------------------
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)
Merci à aurelienchailloux d'avoir fait tout son possible pour m'aider avec ce poste
1 TOKENS vs l(es)'erreur(s) réparé