- Initiateur de la discussion
N
niitooeu
Geek
- Messages
- 31
- Score réaction
- 2
- Points
- 60
Bonjour je fais appel à vous aujourd'hui car plusieurs problèmes LUA sont détéctée sans que je sache d'où ils viennent.. l'ereur LUA se situe à la ligne de la création du job cuisinier. Merci de vos réponses
TEAM_CIVIL = DarkRP.createJob("Civil", {
color = Color(0, 123, 255, 255),
model = {"models/player/x227man/mkotor_2.mdl"},
description = [[Vous etes un citoyen de Rockford.]],
weapons = {""},
command = "civil",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Legal",
PlayerLoadout = function(ply)
ply:SetArmor(0)
end,
PlayerLoadout = function(ply) ply:SetArmor( math.Clamp( ( ply:Armor() or 100 ) + 100, 0, 0 ) ) end,
PlayerSpawn = function(ply)
GAMEMODE:SetPlayerSpeed(ply, GAMEMODE.Config.walkspeed * 1.0, GAMEMODE.Config.runspeed * 1.0)
ply:SetHealth(0)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({"VIP","admin","user","superadmin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Metier FULL",
PlayerDeath = function(ply, weapon, killer)
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un Civil est mort.")
else
DarkRP.notifyAll(0, 4, "Un Civil est mort.")
end
end
})
TEAM_COOK = DarkRP.createJob("Cuisinier", {
color = Color(0, 123, 255, 255),
model = {"models/player/x227man/mkotor_2.mdl"},
description = [[Vous preparez des plats et les vendez aux citoyens.]],
weapons = {""},
command = "cook",
max = 2,
salary = 0,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Legal",
PlayerLoadout = function(ply)
ply:SetArmor(0)
end,
PlayerLoadout = function(ply) ply:SetArmor( math.Clamp( ( ply:Armor() or 100 ) + 100, 0, 0 ) ) end,
PlayerSpawn = function(ply)
GAMEMODE:SetPlayerSpeed(ply, GAMEMODE.Config.walkspeed * 1.0, GAMEMODE.Config.runspeed * 1.0)
ply:SetHealth(0)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({"VIP","admin","user","superadmin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Metier FULL",
PlayerDeath = function(ply, weapon, killer)
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un cuisinier est mort.")
else
DarkRP.notifyAll(0, 4, "Un cuisinier est mort.")
end
end
})
TEAM_CIVIL = DarkRP.createJob("Civil", {
color = Color(0, 123, 255, 255),
model = {"models/player/x227man/mkotor_2.mdl"},
description = [[Vous etes un citoyen de Rockford.]],
weapons = {""},
command = "civil",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Legal",
PlayerLoadout = function(ply)
ply:SetArmor(0)
end,
PlayerLoadout = function(ply) ply:SetArmor( math.Clamp( ( ply:Armor() or 100 ) + 100, 0, 0 ) ) end,
PlayerSpawn = function(ply)
GAMEMODE:SetPlayerSpeed(ply, GAMEMODE.Config.walkspeed * 1.0, GAMEMODE.Config.runspeed * 1.0)
ply:SetHealth(0)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({"VIP","admin","user","superadmin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Metier FULL",
PlayerDeath = function(ply, weapon, killer)
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un Civil est mort.")
else
DarkRP.notifyAll(0, 4, "Un Civil est mort.")
end
end
})
TEAM_COOK = DarkRP.createJob("Cuisinier", {
color = Color(0, 123, 255, 255),
model = {"models/player/x227man/mkotor_2.mdl"},
description = [[Vous preparez des plats et les vendez aux citoyens.]],
weapons = {""},
command = "cook",
max = 2,
salary = 0,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Legal",
PlayerLoadout = function(ply)
ply:SetArmor(0)
end,
PlayerLoadout = function(ply) ply:SetArmor( math.Clamp( ( ply:Armor() or 100 ) + 100, 0, 0 ) ) end,
PlayerSpawn = function(ply)
GAMEMODE:SetPlayerSpeed(ply, GAMEMODE.Config.walkspeed * 1.0, GAMEMODE.Config.runspeed * 1.0)
ply:SetHealth(0)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({"VIP","admin","user","superadmin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Metier FULL",
PlayerDeath = function(ply, weapon, killer)
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un cuisinier est mort.")
else
DarkRP.notifyAll(0, 4, "Un cuisinier est mort.")
end
end
})