Probleme lua

  • Initiateur de la discussion
Matteo57400

Matteo57400

Geek
Messages
60
Score réaction
1
Points
95
Bonjour j'en train de faire un serveur prisonrp est j'ai un probleme lua
probleme lua ligne 110 vous pouvez m'aidez svp

--[[---------------------------------------------------------------------------
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 jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_SDF = DarkRP.createJob("Prisonnier Voleur", {
color = Color(214, 111, 16, 255),
model = {"models/Humans/Male/Group01/prison/jumpsuitsheet"},
description = [[Vous êtes le plus pauvre de la ville , vous passez votre temps à demander de l' argent aux passants et jeter des choses sur eux.]],
weapons = {"weapon_fists", "lockpick", "keypad_cracker"},
command = "voleur",
max = 4,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = true,
cook = false,
category = "Citizens",
})

TEAM_MAF = DarkRP.createJob("Prisonnier Mafieux", {
color = Color(214, 111, 16, 255),
model = {"models/Humans/Male/Group01/prison/jumpsuitsheet"},
description = [[Vous vendez des armes mais faites attention si vous les vendez illégalement!]],
weapons = {"weapon_fists"},
command = "Mafieux",
max = 4,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})

TEAM_MAYOR = DarkRP.createJob("Directeur De La Prison", {
color = Color(5, 10, 72, 255),
model = {"models/Obama/Obama.mdl"},
description = [[Vous êtes le Maire de la ville.]],
weapons = {"weapon_fists"},
command = "MAYOR",
max = 1,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
jobType = "job",
candemote = true,
-- CustomCheck
mayor = true,
PlayerDeath = function(ply, weapon, killer)
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Le Directeur De La Prison a été tué.")
else
DarkRP.notifyAll(0, 4, "Le Directeur De La Prison est mort.")
end
end
})

TEAM_MEDECIN = DarkRP.createJob("Docteur", {
color = Color(24, 126, 140, 255),
model = {"models/11thDoctor/Doctor_Cloth"},
description = [[Vous avez pour but de soignez les habitants de la ville , restez un peu près de l' hopital , à vous de choisir le prix de vos soins.]],
weapons = {"weapon_medkit", "weapon_defibrilator", "m9k_colt1911"},
command = "medecin",
max = 2,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = true,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})

TEAM_AGENTDSC = DarkRP.createJob("Garde De La Cour", {
color = Color(43, 81, 214, 255)
model = {"models/player/guard_pack/guard_02.mdl"},
description = [[Vous grimpez au mur! Faites un 90° pour recharger les sauts!]],
weapons = {"weapon_fists", "stunstick", "weaponchecker", "m9k_mp5", "riot_shield"},
command = "agendesecurite",
max = 4,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})

TEAM_GARDEDCRPS = DarkRP.createJob("Garde De La porte", {
color = Color(43, 81, 214, 255)
model = {"models/player/guard_pack/guard_01.mdl"},
description = [[Vous assurez la sécurité de quelqu' un!]],
weapons = {"weapon_fists", "m9k_mp5", "stunstick", "weaponchecker", "riot_shield"},
command = "gardeducorp",
max = 4,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})

TEAM_GARDEDCRP = DarkRP.createJob("Garde Du Directeur", {
color = Color(43, 81, 214, 255)
model = {"models/player/guard_pack/guard_03.mdl"},
description = [[Vous assurez la sécurité de quelqu' un!]],
weapons = {"weapon_fists", "m9k_mp5", "stunstick", "weaponchecker", "riot_shield"},
command = "gardeducorps",
max = 4,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})

TEAM_DU = DarkRP.createJob("Garde Corrompu", {
color = Color(43, 81, 214, 255)
model = {"models/player/guard_pack/guard_05.mdl"},
description = [[Vous assurez la sécurité de quelqu' un!]],
weapons = {"weapon_fists", "m9k_mp5", "stunstick", "weaponchecker", "riot_shield"},
command = "gardeducorpss",
max = 4,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})

TEAM_DU = DarkRP.createJob("Garde Des Mirador", {
color = Color(43, 81, 214, 255)
model = {"models/player/guard_pack/guard_06.mdl"},
description = [[Vous assurez la sécurité de quelqu' un!]],
weapons = {"weapon_fists", "m9k_mp5", "stunstick", "weaponchecker", "riot_shield"},
command = "gardeducorpsss",
max = 2,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})

TEAM_MIRADOR = DarkRP.createJob("Chef MiraDor", {
color = Color(43, 81, 214, 255)
model = {"models/player/bfh_operator.mdl"},
description = [[Vous êtes un gang qui fait la guerre avec les autre gangs.]],
weapons = {"weapon_fists", "m9k_m24", "m9k_intervention", "riot_shield"},
command = "cmirador",
max = 1,
salary = 82,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})

TEAM_MIR = DarkRP.createJob("Mirador ", {
color = Color(43, 81, 214, 255)
model = "models/player/bfh_operator.mdl",
description = [[Vous Etes Sniper Vous Devez Faire Respectez Les Regles.]],
weapons = {"weapon_fists", "m9k_m24", "riot_shield"},
command = "cmirador",
max = 4,
salary = 50,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Civil Protection",
})

TEAM_MODO = DarkRP.createJob("Moderateur", {
color = Color(255, 0, 0, 255),
model = {
"models/player/anon/anon.mdl",
},
description = [[Ce job est reserver au Staff du Serveur!]],
weapons = {"weapon_fists"},
command = "modo",
max = 12,
salary = 200,
admin = 0,
vote = false,
hasLicense = false,
hasRadio = true,
canTalkToGlobal = true,
customCheck = function(ply) return CLIENT or
table.HasValue({"moderateur"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Erreur! Vous devez être Modo",
})

TEAM_ADMIN = DarkRP.createJob("Admin", {
color = Color(255, 0, 0, 255),
model = {
"models/player/anon/anon.mdl",
},
description = [[Ce job est reserver au Staff du Serveur!]],
weapons = {"weapon_fists"},
command = "admin",
max = 12,
salary = 200,
admin = 0,
vote = false,
hasLicense = false,
hasRadio = true,
canTalkToGlobal = true,
customCheck = function(ply) return CLIENT or
table.HasValue({"admin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Erreur! Vous devez être admin",
})

TEAM_SA = DarkRP.createJob("Super-Admin", {
color = Color(255, 0, 0, 255),
model = {
"models/player/anon/anon.mdl",
},
description = [[Ce job est reserver au Staff du Serveur!]],
weapons = {"weapon_fists"},
command = "spad",
max = 12,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
hasRadio = true,
canTalkToGlobal = true,
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin", "fondateur", "co-fondateur", "Super Raton"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Erreur! Vous devez être superadmin",
})

TEAM_MAF = DarkRP.createJob("Prisonnier Gangster", {
color = Color(214, 111, 16, 255),
model = {"models/Humans/Male/Group01/prison/jumpsuitsheet"},
description = [[Vous Etes Un Gangster]],
weapons = {"weapon_fists"},
command = "Mafieux",
max = 4,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})

TEAM_GUN = DarkRP.createJob("Prisonnier Vendeur D'arme", {
color = Color(214, 111, 16, 255),
model = {"models/Humans/Male/Group01/prison/jumpsuitsheet"},
description = [[Vous Etes un Vendeur D'arme]],
weapons = {"weapon_fists"},
command = "Mafieux",
max = 4
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})

TEAM_SWAT = DarkRP.createJob("Raid", {
color = Color(43, 81, 214, 255)
model = {
"models/player/pmc_1/pmc__01.mdl",
"models/player/pmc_2/pmc__01.mdl",
"models/player/pmc_3/pmc__01.mdl",
"models/player/pmc_6/pmc__01.mdl",
},
description = [[...]],
weapons = {"weapon_fists", "m9k_famas", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "m9k_m3", "metal_detector", "riot_shield"},
command = "Craid",
max = 1,
salary = 180,
admin = 0,
vote = true,
hasLicense = true,
hasRadio = true,
canTalkToGlobal = false,
candemote = false,
category = "Civil Protection",
})

TEAM_CITOYEN = DarkRP.createJob("Prisonnier", {
color = Color(214, 111, 16, 255),
model = {"models/Humans/Male/Group01/prison/jumpsuitsheet"},
description = [[Vous êtes un habitant de la ville.]],
weapons = {"weapon_fists"},
command = "citoyen",
max = 40,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})

TEAM_GIGNCHEF = DarkRP.createJob("Chef Du Raid", {
color = Color(43, 81, 214, 255)
model = {
"models/player/pmc_1/pmc__01.mdl",
"models/player/pmc_2/pmc__01.mdl",
"models/player/pmc_3/pmc__01.mdl",
"models/player/pmc_6/pmc__01.mdl",
},
description = [[...]],
weapons = {"weapon_fists", "m9k_famas", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "m9k_m3", "metal_detector", "riot_shield"},
command = "Craid",
max = 1,
salary = 180,
admin = 0,
vote = true,
hasLicense = true,
hasRadio = true,
canTalkToGlobal = false,
candemote = false,
category = "Civil Protection",
})

--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITOYEN


--[[---------------------------------------------------------------------------
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_ADMIN] = true,
[TEAM_AGENTDSC] = true,
[TEAM_CITOYEN] = true,
[TEAM_DU] = true,
[TEAM_GARDEDCRP] = true,
[TEAM_GARDEDCRPS] = true,
[TEAM_GUN] = true,
[TEAM_MAF]= true,
[TEAM_MAYOR] = true,
[TEAM_MIRADOR] = true,
[TEAM_MEDECIN] = true,
[TEAM_MIR] = true,
[TEAM_MIRADOR] = true,
[TEAM_MODO] = true,
[TEAM_SA] = true,
[TEAM_SDF] = true,
[TEAM_SWAT] = true,
[TEAM_TUEUR] = true,
[TEAM_GIGNCHEF] = true,
}

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

N1colas1P

Geek suprême
Messages
196
Score réaction
29
Points
100
Matteo57400 à dit:
command = "cmirador",
Salut, chaque job doit avoir une "command" différente ;)
Je vois la même command pour :

- Chef MiraDor
- Mirador

De même pour :

- Prisonnier Gangster
- Prisonnier Vendeur d'armes
 
  • Initiateur de la discussion
Matteo57400

Matteo57400

Geek
Messages
60
Score réaction
1
Points
95
d'accord merci je vais le changer
 
  • Initiateur de la discussion
Matteo57400

Matteo57400

Geek
Messages
60
Score réaction
1
Points
95
j'ai changer tous se qu'il fallait mais sa me marque ligne 110
 
kirikoumalou

kirikoumalou

Lucas Pastel
Messages
1 057
Score réaction
200
Points
260
Matteo57400 à dit:
j'ai changer tous se qu'il fallait mais sa me marque ligne 110
Montre ta ligne 110 ?
 
Discord d'entraide
Rejoignz-nous sur Discord