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
Il me dit :
Please check your console for more information!
[ERROR] A runtime error has occurred in "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 -------

gamemodes/darkrp/gamemode/libraries/simplerr.lua:530: [ERROR] A runtime error has occurred in "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 -------

Mon 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:
---------------------------------------------------------------------------]]
TEAM_CITIZEN = DarkRP.createJob("Citoyen", { color = Color(25, 25, 25, 255), 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_03.mdl", description = [[Tu est un Citoyen(e)]], weapons = {"weapon_fists", "weapon_arc_atmcard", "dab", "surrender"}, command = "cit", max = 0, salary = 40, admin = 0, vote = false, hasLicense = false, })
TEAM_POLICE = DarkRP.createJob("Policier", { color = Color(25, 25, 25, 255), "models/player/nypd/male_04.mdl", "models/player/nypd/male_05.mdl", "models/player/nypd/male_06.mdl", "models/player/nypd/male_07.mdl", "models/player/nypd/male_08.mdl", "models/player/nypd/male_09.mdl", description = [[Tu est un Policier tu doit faire respecter les lois dans la ville]], weapons = {"weapon_fists", "weapon_arc_atmcard", "arrest_stick", "unarrest_stick", "salute", "policebadgewallet", "m9k_m92beretta"}, command = "pol", max = 5, salary = 100, admin = 0, vote = false, hasLicense = true,
})
--[[---------------------------------------------------------------------------
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)
 
Discord d'entraide
Rejoignz-nous sur Discord