Erreur logs Gmod

  • Initiateur de la discussion
K

Kizmo

Nouveau né
Messages
21
Score réaction
2
Points
25
Bonjour,
Je suis en train de configurer mon serveur mais j'ai des erreurs dans les logs :

There is 1 Lua problem!
Please check your console for more information!
[ERROR] A runtime error has occurred in "your jobs" on line -1.
The best help I can give you is this:

The category of "Citoyen" ("Citizens") does not exist!

Hints:
- Make sure the category is created with DarkRP.createCategory.
- The category name is case sensitive!
- Categories must be created before DarkRP finished loading.

The responsibility for the error above lies with (the authors of) one (or more) of these files:
your jobs
------- End of Simplerr error -------

There is 1 Lua problem!
Please check your console for more information!
[ERROR] A runtime error has occurred in "addons/darkrpmodification/lua/darkrp_customthings/jobs.lua" on line 53.
The best help I can give you is this:

A table is being indexed by something that does not exist (table index is nil).

Hints:
- The thing between square brackets does not exist (is nil).

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 53
2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
3. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
4. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 137
5. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 148
6. gamemodes/darkrp/gamemode/init.lua on line 108
------- End of Simplerr error -------

Comment faire ? Merci :)
 
Yoh Sambre ♪

Yoh Sambre ♪

Shaman Fou
Messages
16 289
Score réaction
9 688
Points
1 845
Problème : catégorie qui n'existe pas , lignes 53 cékoi? , et cette erreur ignore

Code:
2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
3. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
4. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 137
5. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 148
6. gamemodes/darkrp/gamemode/init.lua on line 108
 
  • J'aime
Réactions: Kizmo
  • Initiateur de la discussion
K

Kizmo

Nouveau né
Messages
21
Score réaction
2
Points
25
Pourtant dans categories j'ai bien
DarkRP.createCategory{
name = "Citizens",
categorises = "jobs",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 100,
}

Et ligne 53 :
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = false, ( ligne 53 )
[TEAM_CHIEF] = false,
[TEAM_MAYOR] = false,
[TEAM_SWAT] = false,
}
 
C

|codeur gmod| tonny

Nouveau né
Messages
2
Score réaction
2
Points
25
Envoie ton metier de la ligne 53 dans ton jobs.lua
 
  • J'aime
Réactions: Kizmo
  • Initiateur de la discussion
K

Kizmo

Nouveau né
Messages
21
Score réaction
2
Points
25
Dans Jobs.lua il y a que le metier Citoyens, tous le reste je l'ai mis dans jobrelated, a la ligne 53 il y a ca :
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = false, ( ligne 53 )
[TEAM_CHIEF] = false,
[TEAM_MAYOR] = false,
[TEAM_SWAT] = false,
}
 
C

|codeur gmod| tonny

Nouveau né
Messages
2
Score réaction
2
Points
25
Il faut metre tout tes jobs dans le jobs.lua
 
  • J'aime
Réactions: Kizmo
  • Initiateur de la discussion
K

Kizmo

Nouveau né
Messages
21
Score réaction
2
Points
25
Je vais essayer. Merci
 
  • J'aime
Réactions: |codeur gmod| tonny
  • Initiateur de la discussion
K

Kizmo

Nouveau né
Messages
21
Score réaction
2
Points
25
J'ai tout mis dans jobs.lua mais je ne comprend pas, j'ai comme erreur :
There are 3 Lua problems!
Please check your console for more information!
[ERROR] A runtime error has occurred in "your jobs" on line -1.
The best help I can give you is this:

The category of "Policier" ("Protection de la Population") does not exist!

Hints:
- Make sure the category is created with DarkRP.createCategory.
- The category name is case sensitive!
- Categories must be created before DarkRP finished loading.

The responsibility for the error above lies with (the authors of) one (or more) of these files:
your jobs
------- End of Simplerr error -------

[ERROR] A runtime error has occurred in "your jobs" on line -1.
The best help I can give you is this:

The category of "Commissaire" ("Protection de la Population") does not exist!

Hints:
- Make sure the category is created with DarkRP.createCategory.
- The category name is case sensitive!
- Categories must be created before DarkRP finished loading.

The responsibility for the error above lies with (the authors of) one (or more) of these files:
your jobs
------- End of Simplerr error -------

[ERROR] A runtime error has occurred in "your jobs" on line -1.
The best help I can give you is this:

The category of "[VIP] S.W.A.T" ("Protection de la Population") does not exist!

Hints:
- Make sure the category is created with DarkRP.createCategory.
- The category name is case sensitive!
- Categories must be created before DarkRP finished loading.

The responsibility for the error above lies with (the authors of) one (or more) of these files:
your jobs
------- End of Simplerr error -------
Alors que j'ai dans categories.lua j'ai bien
DarkRP.createCategory{
name = "Protection de la Population",
categorises = "jobs",
startExpanded = true,
color = Color(0, 133, 255, 255),
canSee = function(ply) return table.HasValue({TEAM_POLICE, TEAM_CHIEF, TEAM_SWAT, TEAM_SWATCHIEF}, ply:Team()) end,
sortOrder = 25
}

 
Discord d'entraide
Rejoignz-nous sur Discord