Probleme serveur garry's mod erreur

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

iShower

Geek
Messages
92
Score réaction
12
Points
85
Pouvez vous m'aider a enlever ces erreur s'il vous plait ? Merci d'avance

[DarkRP] gamemodes/darkrp/gamemode/config/jobrelated.lua:55: '}' expected (to close '{' at line 37) near ')'
1. unknown - gamemodes/darkrp/gamemode/config/jobrelated.lua:0


[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:871: '<eof>' expected near 'end'
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0

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 "Bus driver" ("Other") 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 -------


[DarkRP] gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua:891: attempt to index local 'cat' (a nil value)
1. mergeCategories - gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua:891
2. fn - gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua:903
3. Call - addons/ulib/lua/ulib/shared/hook.lua:109
4. Call - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:149
5. unknown - gamemodes/darkrp/gamemode/cl_init.lua:56

Couldn't Load Init Script: 'darkrp/gamemode/cl_init.lua'
 
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
359
Points
315
"The category of "Bus driver" ("Other") does not exist! " c'est le problème tu as mis en catégorie "Other" mais tu ne l'as pas définie dans "/addons/darkrpmodification/lua/darkrp_customthings/categories.lua"
 
  • Initiateur de la discussion
iShower

iShower

Geek
Messages
92
Score réaction
12
Points
85
Je n'ai rien dans catégories
 
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
359
Points
315
Justement il faut que tu créer la catégorie "Other"
 
L

Lavomano

Bambi
Messages
45
Score réaction
7
Points
30
iShower à dit:
Je n'ai rien dans catégories
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:871: '<eof>' expected near 'end'
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0

Donne le code qui merde en question dans le fichier job.lua je sais pas quoi et donne a partir de la ligne 860 jusqu'à la fin et je regarde quand j'avais fait un serveur Murder j'ai tenter de traduire et j'avais les " donc sa avais fait une erreur pareil que j'étais con mdr
 
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
359
Points
315
Envoie ton job.lua
 
  • Initiateur de la discussion
iShower

iShower

Geek
Messages
92
Score réaction
12
Points
85
Du coup j'ai supprimer le jobs "cuisinier qui etait a la ligne 860 mais il me reste sa je sais pas si il y a une erreur dedans


TEAM_ADMIN = DarkRP.createJob("Staff GamingRed", {
color = Color(75, 0, 130, 255),
model = {"models/fearless/dbsuit07.mdl","models/fearless/dgsuit12.mdl"},
description = [[Job pour les admins.]],
weapons = {"weapon_fists","weapon_arc_atmcard","weaponchecker","unarrest_stick","arrest_stick","stunstick","vc_wrench","weapon_keypadchecker","itemstore_pickup"},
command = "staff",
max = 0,
salary = 1500,
admin = 1,
vote = false,
hasLicense = true,
-- Insert customCheck here if you have one and want one.
customCheck = function(ply) return CLIENT or
table.HasValue({"Super-Admin","admin","superadmin","Modo-Test-VIP","Fondateur","Co-Fondateur","Moderateur-VIP","modo"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Vous n'avez pas les droit d'administrateur",
type = "legal"

})


end







--[[---------------------------------------------------------------------------
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_AVOC] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
[TEAM_GIGN] = true,
[TEAM_GIGNCHIEF] = true,
[TEAM_SECRETARY] = true,
[TEAM_BAC] = true,
[TEAM_GIGNSNIPE] = true,
[TEAM_POLICECP] = true,

}

--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
 
L

Lavomano

Bambi
Messages
45
Score réaction
7
Points
30
iShower à dit:
Du coup j'ai supprimer le jobs "cuisinier qui etait a la ligne 860 mais il me reste sa je sais pas si il y a une erreur dedans


TEAM_ADMIN = DarkRP.createJob("Staff GamingRed", {
color = Color(75, 0, 130, 255),
model = {"models/fearless/dbsuit07.mdl","models/fearless/dgsuit12.mdl"},
description = [[Job pour les admins.]],
weapons = {"weapon_fists","weapon_arc_atmcard","weaponchecker","unarrest_stick","arrest_stick","stunstick","vc_wrench","weapon_keypadchecker","itemstore_pickup"},
command = "staff",
max = 0,
salary = 1500,
admin = 1,
vote = false,
hasLicense = true,
-- Insert customCheck here if you have one and want one.
customCheck = function(ply) return CLIENT or
table.HasValue({"Super-Admin","admin","superadmin","Modo-Test-VIP","Fondateur","Co-Fondateur","Moderateur-VIP","modo"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Vous n'avez pas les droit d'administrateur",
type = "legal"

})


end







--[[---------------------------------------------------------------------------
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_AVOC] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
[TEAM_GIGN] = true,
[TEAM_GIGNCHIEF] = true,
[TEAM_SECRETARY] = true,
[TEAM_BAC] = true,
[TEAM_GIGNSNIPE] = true,
[TEAM_POLICECP] = true,

}

--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
Envoie le fichier entier au pire car on comprend rien
 
midou4141

midou4141

Geek
Messages
140
Score réaction
13
Points
65
pk tu met un end pour rien enleve le a la fin
 
midou4141

midou4141

Geek
Messages
140
Score réaction
13
Points
65
Code:
TEAM_ADMIN = DarkRP.createJob("Staff GamingRed", {
color = Color(75, 0, 130, 255),
model = {"models/fearless/dbsuit07.mdl","models/fearless/dgsuit12.mdl"},
description = [[Job pour les admins.]],
weapons = {"weapon_fists","weapon_arc_atmcard","weaponchecker","unarrest_stick","arrest_stick","stunstick","vc_wrench","weapon_keypadchecker","itemstore_pickup"},
command = "staff",
max = 0,
salary = 1500,
admin = 1,
vote = false,
hasLicense = true,
-- Insert customCheck here if you have one and want one.
customCheck = function(ply) return CLIENT or
table.HasValue({"Super-Admin","admin","superadmin","Modo-Test-VIP","Fondateur","Co-Fondateur","Moderateur-VIP","modo"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Vous n'avez pas les droit d'administrateur",
type = "legal"
})
Essey sa
 
  • Initiateur de la discussion
iShower

iShower

Geek
Messages
92
Score réaction
12
Points
85
Merci beaucoup l'ami
 
  • Initiateur de la discussion
iShower

iShower

Geek
Messages
92
Score réaction
12
Points
85
Il me reste sa comme problemes et je ne comprend pas :/

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" ("Other") 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 -------
 
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
359
Points
315
Il faut que tu créer la catégorie "Other" dans "/addons/darkrpmodification/lua/darkrp_customthings/categories.lua"
 
midou4141

midou4141

Geek
Messages
140
Score réaction
13
Points
65
  • Initiateur de la discussion
iShower

iShower

Geek
Messages
92
Score réaction
12
Points
85
Euh bah j'ai jamais fais :/
 
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
359
Points
315
DarkRP.createCategory{
name = "Other",
categorises = "jobs",
startExpanded = true,
color = Color(20, 150, 20, 255),
canSee = function(ply) return true end,
sortOrder = 10,
}

met sa dans le fichier categories.lua
 
  • Initiateur de la discussion
iShower

iShower

Geek
Messages
92
Score réaction
12
Points
85
Sa me fais encore plus d erreur lua
 
  • Initiateur de la discussion
iShower

iShower

Geek
Messages
92
Score réaction
12
Points
85
J'ai réussi a regler tout sa grace a toi merci l ami !
 
Discord d'entraide
Rejoignz-nous sur Discord