Probleme job

  • Initiateur de la discussion MonsieurLeLama
  • Date de début
  • Initiateur de la discussion
MonsieurLeLama

MonsieurLeLama

Geek suprême
Messages
372
Score réaction
90
Points
180
J'ai ce probleme sur mon jobs :

Code:
[ERROR] A runtime error has occurred in "lua/darkrp_customthings/jobs.lua" on line -1.
The best help I can give you is this:
GAMEMODE.DefaultTeam is not set to an existing job.
Hints: - This may happen when you disable the default citizen job. Make sure you update GAMEMODE.DefaultTeam to the new default team. - GAMEMODE.DefaultTeam may be set to a job that does not exist anymore. Did you remove the job you had set to default? - The error being in jobs.lua is a guess. This is usually right, but the problem might lie somewhere else.
The responsibility for the error above lies with (the authors of) one (or more) of these files: jobs.lua, settings.lua, disabled_defaults.lua or any of your other custom files.
------- End of Simplerr error -------
[ERROR] A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 687.
The best help I can give you is this:
DarkRP was unable to introduce player "MrSuprman" to the game. Expect further errors and shit generally being fucked!
Hints: - This error most likely does not stand on its own, and previous serverside errors have a very good chance of telling you the cause. - Note that errors from another addon could cause this. Specifically when they're thrown during 'PlayerInitialSpawn'. - This error can also be caused by some other addon returning a value in 'PlayerInitialSpawn', though that is less likely. - Errors in your DarkRP configuration (jobs, shipments, etc.) could also cause this. Earlier errors should tell you when this is the case.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
------- End of Simplerr error -------
 
theoducoco

theoducoco

Geek suprême
Messages
299
Score réaction
41
Points
100
MrSuprman à dit:
J'ai ce probleme sur mon jobs :

Code:
[ERROR] A runtime error has occurred in "lua/darkrp_customthings/jobs.lua" on line -1.
The best help I can give you is this:
GAMEMODE.DefaultTeam is not set to an existing job.
Hints: - This may happen when you disable the default citizen job. Make sure you update GAMEMODE.DefaultTeam to the new default team. - GAMEMODE.DefaultTeam may be set to a job that does not exist anymore. Did you remove the job you had set to default? - The error being in jobs.lua is a guess. This is usually right, but the problem might lie somewhere else.
The responsibility for the error above lies with (the authors of) one (or more) of these files: jobs.lua, settings.lua, disabled_defaults.lua or any of your other custom files.
------- End of Simplerr error -------
[ERROR] A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 687.
The best help I can give you is this:
DarkRP was unable to introduce player "MrSuprman" to the game. Expect further errors and shit generally being fucked!
Hints: - This error most likely does not stand on its own, and previous serverside errors have a very good chance of telling you the cause. - Note that errors from another addon could cause this. Specifically when they're thrown during 'PlayerInitialSpawn'. - This error can also be caused by some other addon returning a value in 'PlayerInitialSpawn', though that is less likely. - Errors in your DarkRP configuration (jobs, shipments, etc.) could also cause this. Earlier errors should tell you when this is the case.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
------- End of Simplerr error -------
Tu peut envoyer le job ?
 
Malcolm

Malcolm

Psychopathe
Messages
1 096
Score réaction
262
Points
280
De ce que j'ai compris ton "GAMEMODE.DefaultTeam" n'existe pas, pourrai tu nous passer ton jobs.lua ?
 
  • Initiateur de la discussion
MonsieurLeLama

MonsieurLeLama

Geek suprême
Messages
372
Score réaction
90
Points
180
Je vous mais l'intégraliter du jobs.lua
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:
---------------------------------------------------------------------------]]
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITOIYEN
--[[---------------------------------------------------------------------------
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(25, 25, 25, 255), model = "models/bloocobalt/citizens/female_01_b.mdl", "models/bloocobalt/citizens/female_01.mdl", "models/bloocobalt/citizens/female_02", "models/bloocobalt/citizens/female_02_b.mdl", "models/bloocobalt/citizens/female_03.mdl", "models/bloocobalt/citizens/female_03_b.mdl", "models/bloocobalt/citizens/female_04.mdl", "models/bloocobalt/citizens/female_04_b.mdl", "models/bloocobalt/citizens/female_05.mdl", "models/bloocobalt/citizens/female_05_b.mdl", "models/bloocobalt/citizens/female_06.mdl", "models/bloocobalt/citizens/female_06_b.mdl", "models/bloocobalt/citizens/female_07.mdl", "models/bloocobalt/citizens/female_07_b.mdl", "models/bloocobalt/citizens/male_01.mdl", "models/bloocobalt/citizens/male_02", "models/bloocobalt/citizens/male_02_b.mdl", "models/bloocobalt/citizens/male_03.mdl", "models/bloocobalt/citizens/male_03_b.mdl", "models/bloocobalt/citizens/male_04.mdl", "models/bloocobalt/citizens/male_04_b.mdl", "models/bloocobalt/citizens/male_05.mdl", "models/bloocobalt/citizens/male_05_b.mdl", "models/bloocobalt/citizens/male_06.mdl", "models/bloocobalt/citizens/male_06_b.mdl", "models/bloocobalt/citizens/male_07.mdl", "models/bloocobalt/citizens/male_07_b.mdl", "models/bloocobalt/citizens/male_08.mdl", "models/bloocobalt/citizens/male_08_b.mdl", "models/bloocobalt/citizens/male_09.mdl", "models/bloocobalt/citizens/male_09_b.mdl", description = [[Tu est un Citoyen]], weapons = {"weapon_fists", "weapon_arc_atmcard", "dab", "surrender"}, command = "cit", max = 0, salary = 10, admin = 0, vote = false, hasLicense = false, })
 
Malcolm

Malcolm

Psychopathe
Messages
1 096
Score réaction
262
Points
280
MrSuprman à dit:
Je vous mais l'intégraliter du jobs.lua
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:
---------------------------------------------------------------------------]]
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITOIYEN
--[[---------------------------------------------------------------------------
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(25, 25, 25, 255), model = "models/bloocobalt/citizens/female_01_b.mdl", "models/bloocobalt/citizens/female_01.mdl", "models/bloocobalt/citizens/female_02", "models/bloocobalt/citizens/female_02_b.mdl", "models/bloocobalt/citizens/female_03.mdl", "models/bloocobalt/citizens/female_03_b.mdl", "models/bloocobalt/citizens/female_04.mdl", "models/bloocobalt/citizens/female_04_b.mdl", "models/bloocobalt/citizens/female_05.mdl", "models/bloocobalt/citizens/female_05_b.mdl", "models/bloocobalt/citizens/female_06.mdl", "models/bloocobalt/citizens/female_06_b.mdl", "models/bloocobalt/citizens/female_07.mdl", "models/bloocobalt/citizens/female_07_b.mdl", "models/bloocobalt/citizens/male_01.mdl", "models/bloocobalt/citizens/male_02", "models/bloocobalt/citizens/male_02_b.mdl", "models/bloocobalt/citizens/male_03.mdl", "models/bloocobalt/citizens/male_03_b.mdl", "models/bloocobalt/citizens/male_04.mdl", "models/bloocobalt/citizens/male_04_b.mdl", "models/bloocobalt/citizens/male_05.mdl", "models/bloocobalt/citizens/male_05_b.mdl", "models/bloocobalt/citizens/male_06.mdl", "models/bloocobalt/citizens/male_06_b.mdl", "models/bloocobalt/citizens/male_07.mdl", "models/bloocobalt/citizens/male_07_b.mdl", "models/bloocobalt/citizens/male_08.mdl", "models/bloocobalt/citizens/male_08_b.mdl", "models/bloocobalt/citizens/male_09.mdl", "models/bloocobalt/citizens/male_09_b.mdl", description = [[Tu est un Citoyen]], weapons = {"weapon_fists", "weapon_arc_atmcard", "dab", "surrender"}, command = "cit", max = 0, salary = 10, admin = 0, vote = false, hasLicense = false, })
Ton jobs est mal placé (à mettre après "Add your custom jobs...") et le métier citoyen existe déjà de base dans le DarkRP mais tu peux le désactiver à partir du "disabled_defaults.lua" du darkrpmodification.
 
  • Initiateur de la discussion
MonsieurLeLama

MonsieurLeLama

Geek suprême
Messages
372
Score réaction
90
Points
180
malcolm2003 à dit:
Ton jobs est mal placé (à mettre après "Add your custom jobs...") et le métier citoyen existe déjà de base dans le DarkRP mais tu peux le désactiver à partir du "disabled_defaults.lua" du darkrpmodification.
Merci sa marche :)
 
  • Banni
B

Bilel Abdela

Geek
Messages
109
Score réaction
15
Points
60
met ton préfixe en résolue :)
 
  • Initiateur de la discussion
MonsieurLeLama

MonsieurLeLama

Geek suprême
Messages
372
Score réaction
90
Points
180
Enfaite non il a toujours un bug j'ai au moins 14 skin et la j'en est qu'un :\
 
  • Initiateur de la discussion
MonsieurLeLama

MonsieurLeLama

Geek suprême
Messages
372
Score réaction
90
Points
180
j'ai un bug sa me fait sa


"addons/darkrpmodification/lua/darkrp_customthings/jobs.lua" on line 41.
The best help I can give you is this:

Corrupt team: Policier!
The model must either be a table of correct model strings or a single correct model string.

Hints:
- This error could happens when the model does not exist on the server.
- Are you sure the model path is right?
- Is the model from an addon that is not properly installed?

The responsibility for the error above lies with (the authors of) one (or more) of these files:
1. addons/darkrpmodification/lua/darkrp_customthings/jobs.lua on line 41
2. function 'xpcall'
3. gamemodes/darkrp/gamemode/libraries/simplerr.lua on line 477
4. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
5. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
6. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 137
7. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 148
8. gamemodes/darkrp/gamemode/init.lua on line 111
------- End of Simplerr error -------

[ERROR] A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 687.
The best help I can give you is this:

DarkRP was unable to introduce player "MrSuprman" to the game. Expect further errors and shit generally being fucked!

Hints:
- This error most likely does not stand on its own, and previous serverside errors have a very good chance of telling you the cause.
- Note that errors from another addon could cause this. Specifically when they're thrown during 'PlayerInitialSpawn'.
- This error can also be caused by some other addon returning a value in 'PlayerInitialSpawn', though that is less likely.
- Errors in your DarkRP configuration (jobs, shipments, etc.) could also cause this. Earlier errors should tell you when this is the case.

The responsibility for the error above lies with (the authors of) one (or more) of these files:

------- End of Simplerr error -------
 
Malcolm

Malcolm

Psychopathe
Messages
1 096
Score réaction
262
Points
280
MrSuprman à dit:
j'ai un bug sa me fait sa


"addons/darkrpmodification/lua/darkrp_customthings/jobs.lua" on line 41.
The best help I can give you is this:

Corrupt team: Policier!
The model must either be a table of correct model strings or a single correct model string.

Hints:
- This error could happens when the model does not exist on the server.
- Are you sure the model path is right?
- Is the model from an addon that is not properly installed?

The responsibility for the error above lies with (the authors of) one (or more) of these files:
1. addons/darkrpmodification/lua/darkrp_customthings/jobs.lua on line 41
2. function 'xpcall'
3. gamemodes/darkrp/gamemode/libraries/simplerr.lua on line 477
4. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
5. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
6. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 137
7. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 148
8. gamemodes/darkrp/gamemode/init.lua on line 111
------- End of Simplerr error -------

[ERROR] A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 687.
The best help I can give you is this:

DarkRP was unable to introduce player "MrSuprman" to the game. Expect further errors and shit generally being fucked!

Hints:
- This error most likely does not stand on its own, and previous serverside errors have a very good chance of telling you the cause.
- Note that errors from another addon could cause this. Specifically when they're thrown during 'PlayerInitialSpawn'.
- This error can also be caused by some other addon returning a value in 'PlayerInitialSpawn', though that is less likely.
- Errors in your DarkRP configuration (jobs, shipments, etc.) could also cause this. Earlier errors should tell you when this is the case.

The responsibility for the error above lies with (the authors of) one (or more) of these files:

------- End of Simplerr error -------
Je te conseil d'aller dans ton darkrpmodification ensuite "lua" > "darkrp_config" > "disabled_defaults.lua" et à la ligne 47-58 tu mets :
Code:
DarkRP.disabledDefaults["jobs"] = { ["chief"] = true, ["citizen"] = true, ["cook"] = true, --Hungermod only ["cp"] = true, ["gangster"] = true, ["gundealer"] = true, ["hobo"] = true, ["mayor"] = true, ["medic"] = true, ["mobboss"] = true,
}
normalement, ça désactivera tous tes jobs de base du DarkRP et là tu pourras recréer tes jobs dans le darkrpmodification.
 
Discord d'entraide
Rejoignz-nous sur Discord