"Job par défaut DARKRP"

  • Initiateur de la discussion
SXZA

SXZA

Geek
Messages
81
Score réaction
20
Points
60
Bonjour, Bonsoir, alors voilà, j'ai acheté une machine chez MTX, hier soir, J'ai crée mon serveur DARKRP sous la map rockford v2b, J'ai installé quelques addons, les métiers sont fait etc, mon problème est que : Lorsque que je souhaite désactivé les job par défaut de darkrp, cela me bourre la console d'error et je spawn sous la map, je mettrais quelques screen à disposition pour que vous puissiez mieux comprendre
J'ai tout essayer, Désactivé les job via le darkmodification, dans le fichier disable_default, ça ne fonctionne pas, des errors toujours au relancement du serv, J'ai donc tenter de changer le "spawnteam" en "TEAM_CITOYEN" et non "TEAM_CITIZEN" dans le fichier jobs, rien ne fonctionne, toujours plus d'erreur, j'ai désinstaller et réinstaller darkrp à plusieurs reprise, rien n'y fait, toujours le même résultat
J'ai même, alors que c'est fortement déconseiller tenter de modifier directement le job citizen à la source dans le fichier jobrelated.lua, les modifications ne se font pas, une fois enregistrer, au relancement du ftp, le fichier de base sans les modifications est deretour là.

quelqu'un aurait il une solution s'il vous plaît? merci beaucoup de votre aide.
 

Pièces jointes

  • Capture.JPG
    Capture.JPG
    66 KB Vues: 65
  • Capture2.JPG
    Capture2.JPG
    125.3 KB Vues: 46
  • Capture3.JPG
    Capture3.JPG
    229.9 KB Vues: 27
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
356
Points
315
Comme ton job est en dessous de la ligne ou est le spawnteam alors le jeu ne le connais pas puisque qu'il n'es pas créer avant la ligne c est pour sa qu'il faut que tu mette les jobs tout en haut du fichier
 
  • J'aime
Réactions: SXZA
  • Initiateur de la discussion
SXZA

SXZA

Geek
Messages
81
Score réaction
20
Points
60
mbvcf à dit:
Comme ton job est en dessous de la ligne ou est le spawnteam alors le jeu ne le connais pas puisque qu'il n'es pas créer avant la ligne c est pour sa qu'il faut que tu mette les jobs tout en haut du fichier
D'accord, peux-tu être un peu plus précis s'il te plaît ? il faut que je mette mes job tout en haut du fichier, c'est bien ça ?
 
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
356
Points
315
Oui envoie le code du fichier je vais te montrer
 
  • J'aime
Réactions: SXZA
  • Initiateur de la discussion
SXZA

SXZA

Geek
Messages
81
Score réaction
20
Points
60
mbvcf à dit:
Oui envoie le code du fichier je vais te montrer
--[[---------------------------------------------------------------------------
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:
---------------------------------------------------------------------------]]



--[[---------------------------------------------------------------------------
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_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)

TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(16, 155, 0, 144),
model = {
"models/Humans/Group02/Player/Tale_01.mdl",
"models/Humans/Group02/Player/Tale_03.mdl",
"models/Humans/Group02/Player/Tale_04.mdl",
"models/Humans/Group02/Player/Tale_05.mdl",
"models/Humans/Group02/Player/Tale_06.mdl",
"models/Humans/Group02/Player/Tale_07.mdl",
"models/Humans/Group02/Player/Tale_08.mdl",
"models/Humans/Group02/Player/Tale_09.mdl",
"models/Humans/Group02/Player/Temale_01.mdl",
"models/Humans/Group02/Player/Temale_02.mdl",
"models/Humans/Group02/Player/Temale_07.mdl",
},
description = [[Le citoyen est le niveau le plus fondamental de la société vous pouvez tenir en plus d'être un clochard.]],
weapons = {"weapon_arc_atmcard", "weapon_fists",},
command = "Citoyen",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
jobType = "job",
})

TEAM_COMMISSAIRE = DarkRP.createJob("Commissaire", {
color = Color(0, 153, 255, 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_04.mdl",
"models/player/uk_police/uk_police_05.mdl",
"models/player/uk_police/uk_police_06.mdl",
"models/player/uk_police/uk_police_07.mdl",
"models/player/uk_police/uk_police_08.mdl",
"models/player/uk_police/uk_police_09.mdl",
},
description = [[Le commissaire est le chef des agents de police vous devez mettre le droit à la ville.]],
weapons = {"weapon_arc_atmcard", "weapon_fists", "door_ram", "weapon_cuff_police", "m9k_colt1911", "weapon_stungun", "weapon_checker", "m9k_m3", "stunstick", "arrest_stick", "unarrest_stick", "weapon_spiketrap",},
command = "Commissaire",
max = 1,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
hasRadio = true,
jobType = "job",
})
 
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
356
Points
315
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(16, 155, 0, 144),
model = {
"models/Humans/Group02/Player/Tale_01.mdl",
"models/Humans/Group02/Player/Tale_03.mdl",
"models/Humans/Group02/Player/Tale_04.mdl",
"models/Humans/Group02/Player/Tale_05.mdl",
"models/Humans/Group02/Player/Tale_06.mdl",
"models/Humans/Group02/Player/Tale_07.mdl",
"models/Humans/Group02/Player/Tale_08.mdl",
"models/Humans/Group02/Player/Tale_09.mdl",
"models/Humans/Group02/Player/Temale_01.mdl",
"models/Humans/Group02/Player/Temale_02.mdl",
"models/Humans/Group02/Player/Temale_07.mdl",
},
description = [[Le citoyen est le niveau le plus fondamental de la société vous pouvez tenir en plus d'être un clochard.]],
weapons = {"weapon_arc_atmcard", "weapon_fists",},
command = "Citoyen",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
jobType = "job",
})
TEAM_COMMISSAIRE = DarkRP.createJob("Commissaire", {
color = Color(0, 153, 255, 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_04.mdl",
"models/player/uk_police/uk_police_05.mdl",
"models/player/uk_police/uk_police_06.mdl",
"models/player/uk_police/uk_police_07.mdl",
"models/player/uk_police/uk_police_08.mdl",
"models/player/uk_police/uk_police_09.mdl",
},
description = [[Le commissaire est le chef des agents de police vous devez mettre le droit à la ville.]],
weapons = {"weapon_arc_atmcard", "weapon_fists", "door_ram", "weapon_cuff_police", "m9k_colt1911", "weapon_stungun", "weapon_checker", "m9k_m3", "stunstick", "arrest_stick", "unarrest_stick", "weapon_spiketrap",},
command = "Commissaire",
max = 1,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
hasRadio = true,
jobType = "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_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
})
 
  • J'aime
Réactions: SXZA
  • Initiateur de la discussion
SXZA

SXZA

Geek
Messages
81
Score réaction
20
Points
60
mbvcf à 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 your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(16, 155, 0, 144),
model = {
"models/Humans/Group02/Player/Tale_01.mdl",
"models/Humans/Group02/Player/Tale_03.mdl",
"models/Humans/Group02/Player/Tale_04.mdl",
"models/Humans/Group02/Player/Tale_05.mdl",
"models/Humans/Group02/Player/Tale_06.mdl",
"models/Humans/Group02/Player/Tale_07.mdl",
"models/Humans/Group02/Player/Tale_08.mdl",
"models/Humans/Group02/Player/Tale_09.mdl",
"models/Humans/Group02/Player/Temale_01.mdl",
"models/Humans/Group02/Player/Temale_02.mdl",
"models/Humans/Group02/Player/Temale_07.mdl",
},
description = [[Le citoyen est le niveau le plus fondamental de la société vous pouvez tenir en plus d'être un clochard.]],
weapons = {"weapon_arc_atmcard", "weapon_fists",},
command = "Citoyen",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
jobType = "job",
})
TEAM_COMMISSAIRE = DarkRP.createJob("Commissaire", {
color = Color(0, 153, 255, 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_04.mdl",
"models/player/uk_police/uk_police_05.mdl",
"models/player/uk_police/uk_police_06.mdl",
"models/player/uk_police/uk_police_07.mdl",
"models/player/uk_police/uk_police_08.mdl",
"models/player/uk_police/uk_police_09.mdl",
},
description = [[Le commissaire est le chef des agents de police vous devez mettre le droit à la ville.]],
weapons = {"weapon_arc_atmcard", "weapon_fists", "door_ram", "weapon_cuff_police", "m9k_colt1911", "weapon_stungun", "weapon_checker", "m9k_m3", "stunstick", "arrest_stick", "unarrest_stick", "weapon_spiketrap",},
command = "Commissaire",
max = 1,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
hasRadio = true,
jobType = "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_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
})


Je test ça et je reviens vers toi, merci
 
  • Initiateur de la discussion
SXZA

SXZA

Geek
Messages
81
Score réaction
20
Points
60
mbvcf à 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 your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(16, 155, 0, 144),
model = {
"models/Humans/Group02/Player/Tale_01.mdl",
"models/Humans/Group02/Player/Tale_03.mdl",
"models/Humans/Group02/Player/Tale_04.mdl",
"models/Humans/Group02/Player/Tale_05.mdl",
"models/Humans/Group02/Player/Tale_06.mdl",
"models/Humans/Group02/Player/Tale_07.mdl",
"models/Humans/Group02/Player/Tale_08.mdl",
"models/Humans/Group02/Player/Tale_09.mdl",
"models/Humans/Group02/Player/Temale_01.mdl",
"models/Humans/Group02/Player/Temale_02.mdl",
"models/Humans/Group02/Player/Temale_07.mdl",
},
description = [[Le citoyen est le niveau le plus fondamental de la société vous pouvez tenir en plus d'être un clochard.]],
weapons = {"weapon_arc_atmcard", "weapon_fists",},
command = "Citoyen",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
jobType = "job",
})
TEAM_COMMISSAIRE = DarkRP.createJob("Commissaire", {
color = Color(0, 153, 255, 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_04.mdl",
"models/player/uk_police/uk_police_05.mdl",
"models/player/uk_police/uk_police_06.mdl",
"models/player/uk_police/uk_police_07.mdl",
"models/player/uk_police/uk_police_08.mdl",
"models/player/uk_police/uk_police_09.mdl",
},
description = [[Le commissaire est le chef des agents de police vous devez mettre le droit à la ville.]],
weapons = {"weapon_arc_atmcard", "weapon_fists", "door_ram", "weapon_cuff_police", "m9k_colt1911", "weapon_stungun", "weapon_checker", "m9k_m3", "stunstick", "arrest_stick", "unarrest_stick", "weapon_spiketrap",},
command = "Commissaire",
max = 1,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
hasRadio = true,
jobType = "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_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
})
Et bien écoute, merci ça a très bien fonctionner, merci beaucoup, bonne fin de soirée ;)
 
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
356
Points
315
Bonne soiré
 
Discord d'entraide
Rejoignz-nous sur Discord