Probleme ULA

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

itchi259

Geek
Messages
36
Score réaction
1
Points
45
Bonjour ou bonsoir voila j'ai fait tous mes job mais seulement quand je lance mon serveur je n'est que les job de base du darkrp qui s'affiche et dans la console il y a écris sa :
Redownloading all lightmaps
There are 2 Lua problems!
Please check your console for more information!
[ERROR] A runtime error has occurred in "addons/darkrpmodification/lua/darkrp_customthings/jobs.lua" on line 18.
The best help I can give you is this:

Corrupt team: Citoyen!
This job does not have a unique command.

Hints:
- There must be some other job that has the same command.
- Fix this by changing the 'command' of your job to something else.

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 18
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 18.
The best help I can give you is this:

Corrupt team: Citoyen!
This job does not have a unique command.

Hints:
- There must be some other job that has the same command.
- Fix this by changing the 'command' of your job to something else.

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 18
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 -------

voici mon fichier job.lua si cela peu vous aider :
--[[---------------------------------------------------------------------------
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(82, 184, 73, 255),
model = {
"models/player/Group01/Female_01.mdl",
"models/player/Group01/Female_02.mdl",
"models/player/Group01/Female_03.mdl",
"models/player/Group01/Female_04.mdl",
"models/player/Group01/Female_06.mdl",
"models/player/group01/male_01.md",
"models/player/Group01/Male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
"models/player/Group01/Male_05.mdl",
"models/player/Group01/Male_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"
},
description = [[Vous incarner un simple citoyen.]],
weapons = {},
command = "citizen",
max = 0,
salary = 5,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizen",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({TEAM_CITIZEN}, ply:Team())
end,
CustomCheckFailMsg = "",
})

TEAM_POLICE = DarkRP.createJob("Gendarme", {
color = Color(25, 94, 158, 255),
model = {"models/player/Group01/Male_09.mdl"},
description = [[Vous devez proteger les habitants ainsi que faire respecter la lois !]],
weapons = {"weapon_deagle2"},
command = "cp",
max = 6,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
chief = true,
ammo = {
["pistol"] = 90
},
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(50)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({TEAM_POLICE}, ply:Team())
end,
CustomCheckFailMsg = "",
})

TEAM_MAYOR = DarkRP.createJob("President", {
color = Color(199, 45, 45, 255),
model = {"models/player/breen.mdl"},
description = [[Vous incarner le président.]],
weapons = {},
command = "mayor",
max = 1,
salary = 500,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
mayor = true,
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
customCheck = function(ply) return CLIENT or
table.HasValue({TEAM_POLICE}, ply:Team())
end,
CustomCheckFailMsg = "",
})

TEAM_CITIZEN = DarkRP.createJob("Staff", {
color = Color(94, 69, 194, 255),
model = {
"models//sonicunleashed.mdl",
"models//npc_compa.mdl",
"models//sw_player_ahri_tails.mdl",
"models//player_linkweapons.mdl"
},
description = [[Ce job ne sert que aux admin ou moderateur qui sont en session de moderation]],
weapons = {},
command = "Staff",
max = 0,
salary = 0,
admin = 1,
vote = false,
hasLicense = false,
candemote = false,
mayor = true,
chief = true,
medic = true,
cook = true,
hobo = true,
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(0)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({TEAM_CITIZEN, TEAM_POLICE, TEAM_GANG, TEAM_MOB, TEAM_GUN}, ply:Team())
end,
CustomCheckFailMsg = "",
})

TEAM_GUN = DarkRP.createJob("Vendeur d'armes", {
color = Color(199, 137, 77, 255),
model = {"models/player/monk.mdl"},
description = [[Vous vendez des armes.]],
weapons = {},
command = "gundealer",
max = 4,
salary = 200,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(35)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({TEAM_GUN}, ply:Team())
end,
CustomCheckFailMsg = "",
})

TEAM_GANG = DarkRP.createJob("Chef Gangster", {
color = Color(204, 204, 204, 255),
model = {"models/player/gman_high.mdl"},
description = [[Vous ette le chef des Gangster, vos hommes doivent vous obéir.]],
weapons = {},
command = "chefgangster",
max = 1,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(0)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end
})

TEAM_POLICE = DarkRP.createJob("Comissaire", {
color = Color(21, 42, 153, 255),
model = {"models/player/combine_soldier_prisonguard.mdl"},
description = [[Vous êtes le comissaire, vous diriger les gendarmes]],
weapons = {"weapon_pumpshotgun2", "weapon_deagle2"},
command = "comissaire",
max = 1,
salary = 350,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
chief = true,
ammo = {
["buckshot"] = 90,
["pistol"] = 0
},
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(150)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
customCheck = function(ply) return CLIENT or
table.HasValue({TEAM_POLICE}, ply:Team())
end,
CustomCheckFailMsg = "",
})

TEAM_MEDIC = DarkRP.createJob("Medecins", {
color = Color(166, 49, 194, 255),
model = {"models/player/kleiner.mdl"},
description = [[Vous soignez les gens SAUF si ils sont en pleine action (braquage ect...)]],
weapons = {"med_kit"},
command = "medecins",
max = 3,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
medic = true,
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(0)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({}, ply:Team())
end,
CustomCheckFailMsg = "",
})

TEAM_GANG = DarkRP.createJob("Gangster", {
color = Color(186, 186, 186, 255),
model = {"models/player/group03/male_01.mdl"},
description = [[Vous faites partie d'un gang.]],
weapons = {},
command = "gangster",
max = 5,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(0)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({TEAM_GANG}, ply:Team())
end,
CustomCheckFailMsg = "",
})
--[[---------------------------------------------------------------------------
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)



Merci d'avance et bon soiré !
 
Yoh Sambre ♪

Yoh Sambre ♪

Shaman Fou
Messages
16 292
Score réaction
9 688
Points
1 845
[ERROR] A runtime error has occurred in "addons/darkrpmodification/lua/darkrp_customthings/jobs.lua" on line 18.
 
  • Banni
Darcheur

Darcheur

Geek
Messages
230
Score réaction
40
Points
80
Corrupt team: Citoyen!
This job does not have a unique command.
 
  • Initiateur de la discussion
itchi259

itchi259

Geek
Messages
36
Score réaction
1
Points
45
Merci de vos réponse sauf que maintenant les jobs se sont tous mis en V.I.P comment faire ?
 
  • Banni
Darcheur

Darcheur

Geek
Messages
230
Score réaction
40
Points
80
Envoi le lua d'un job
Edit :Autant pour moi j'avais pas vu
 
  • Initiateur de la discussion
itchi259

itchi259

Geek
Messages
36
Score réaction
1
Points
45
TEAM_GUN = DarkRP.createJob("Vendeur d'armes", {
color = Color(199, 137, 77, 255),
model = {"models/player/monk.mdl"},
description = [[Vous vendez des armes.]],
weapons = {},
command = "vendeur",
max = 4,
salary = 200,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(35)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({TEAM_GUN}, ply:Team())
end,
CustomCheckFailMsg = "",
})
 
  • Initiateur de la discussion
itchi259

itchi259

Geek
Messages
36
Score réaction
1
Points
45
et en plus j'ai les jobs de base du darkrp qui sont rester pourrait tu m'aider ?
 
  • Banni
Darcheur

Darcheur

Geek
Messages
230
Score réaction
40
Points
80
Essaie d'enlever ca

customCheck = function(ply) return CLIENT or
table.HasValue({TEAM_GUN}, ply:Team())
end,
CustomCheckFailMsg = "",
 
  • Initiateur de la discussion
itchi259

itchi259

Geek
Messages
36
Score réaction
1
Points
45
ok
 
  • Initiateur de la discussion
itchi259

itchi259

Geek
Messages
36
Score réaction
1
Points
45
et tu a une idée pour les jobs du darkrp de base qui sont rester et qui ne figure pas dans le fichier job.lua
 
  • Banni
Darcheur

Darcheur

Geek
Messages
230
Score réaction
40
Points
80
itchi259 à dit:
et tu a une idée pour les jobs du darkrp de base qui sont rester et qui ne figure pas dans le fichier job.lua
T'es sur que les jobs de bases sont plus dans ton fichier job?
 
  • Initiateur de la discussion
itchi259

itchi259

Geek
Messages
36
Score réaction
1
Points
45
oui sur est certain
 
Rubben

Rubben

Geek
Messages
20
Score réaction
4
Points
50
Désactives les Jobs par défaut dans : /srcds/garrysmod/addons/darkrpmodification/lua/darkrp_config/disabled_defaults

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,
}[CODE]
 
  • Initiateur de la discussion
itchi259

itchi259

Geek
Messages
36
Score réaction
1
Points
45
Merci beaucoup, grace a vous se soir j'ai des jobs propre MERCI
 
Rubben

Rubben

Geek
Messages
20
Score réaction
4
Points
50
No problem, n'hésites pas ;)
 
Discord d'entraide
Rejoignz-nous sur Discord