- Initiateur de la discussion
- Banni
rexlafureur
Psychopathe
- Messages
- 1 054
- Score réaction
- 83
- Points
- 220
Alors ,
Mes deux problème sont ,
-Une erreur lua dans le job à la ligne 485 (le troupeau est
)
-Le vendeur d'arme n'as plus d'armes :c
Utile pour votre réponse :
le job.lua :
le shipments.lua :
Mes deux problème sont ,
-Une erreur lua dans le job à la ligne 485 (le troupeau est
Code:
GAMEMODE.CivilProtection = { [TEAM_POLICIER] = true, [TEAM_SWAT] = true, [TEAM_SNIPER] = true, [TEAM_COMMI] = true, [TEAM_STAFF] = true,
}
-Le vendeur d'arme n'as plus d'armes :c
Utile pour votre réponse :
le job.lua :
Code:
TEAM_CITIZEN = DarkRP.createJob("Citoyen", { color = Color(0, 255, 40, 255), model = {"models/humans/group02/player/tale_04.mdl", "models/humans/group02/player/temale_01.mdl", "models/humans/group02/player/tale_07.mdl"}, description = [[Vous devez juste vivre, mais sans métier !]], weapons = {}, command = "citizen", max = 99, salary = 35, admin = 0, vote = false, hasLicense = false, candemote = false,
})
TEAM_GANGSTER = DarkRP.createJob("Gangster", { color = Color(0, 0, 0, 255), model = {"models/sd/players/[dbs_brawler]-head_brawler_dbs.mdl", "models/sd/players/[dbs_brawler_2]-head_brawler_dbs.mdl", "models/sd/players/[dbs_grappler_2].mdl"}, description = [[Votre rôle est de conquérir la ville. Tuer et voler est son but.]], weapons = {}, command = "gangster", max = 8, salary = 45, admin = 0, vote = false, hasLicense = false, candemote = true, hasRadio = true,
})
TEAM_POLICIER = DarkRP.createJob("Policier", { color = Color(0, 71, 255, 255), model = {"models/player/nypd/male_04.mdl", "models/player/nypd/male_06.mdl", "models/player/nypd/male_02.mdl"}, description = [[Votre rôle est de protéger la ville. Ils doivent arreter les bandis et les tuer au cas ou de grands danger.]], weapons = {"arrest_stick", "unarrest_stick", "lockpick", "door_ram", "fas2_p226", "weapon_cuff_standard", "stungun", "weaponchecker"}, command = "policier", max = 8, salary = 50, admin = 0, vote = true, hasLicense = true, candemote = true, category = "Civil Protection", hasRadio = true,
})
TEAM_GIGN = DarkRP.createJob("GIGN", { color = Color(0, 71, 255, 255), model = {"models/player/pmc_2/pmc__01.mdl", "models/player/pmc_5/pmc__05.mdl"}, description = [[Votre rôle est de protéger la ville. Ils doivent arreter les bandis et les tuer au cas ou de grands danger.]], weapons = {"arrest_stick", "unarrest_stick", "lockpick", "door_ram", "m9k_m16a4_acog", "med_kit", "weapon_cuff_standard", "stungun", "weaponchecker"}, command = "swat", max = 5, salary = 80, admin = 0, vote = true, hasLicense = true, candemote = true, category = "Civil Protection", hasRadio = true,
})
TEAM_GUN = DarkRP.createJob("Vendeur d'armes", { color = Color(255, 137, 0, 255), model = {"models/player/arnold_schwarzenegger.mdl"}, description = [[Votre rôle est de vendre des armes dans la ville en ce faisant des bénéfices.]], weapons = {}, command = "armevendeur", max = 4, salary = 35, admin = 0, vote = false, hasLicense = true, candemote = true,
})
TEAM_GARDEDUCORP = DarkRP.createJob("Garde du corps", { color = Color(0, 209, 255, 255), model = {"models/player/guard_pack/guard_04.mdl", "models/player/guard_pack/guard_06.mdl", "models/player/guard_pack/guard_07.mdl"}, description = [[Votre rôle est de protéger les gens contre rémunération.]], weapons = {"stunstick"}, command = "gardeducorp", max = 3, salary = 20, admin = 0, vote = false, hasLicense = true, candemote = true,
})
TEAM_MAFIA = DarkRP.createJob("Mafieux", { color = Color(255, 0, 0, 255), model = {"models/fearless/mafia02.mdl", "models/fearless/mafia04.mdl", "models/fearless/mafia06.mdl"}, description = [[Votre rôle est de conquérir la ville. Tuer et voler est son but.]], weapons = {}, command = "mafieux", max = 8, salary = 45, admin = 0, vote = false, hasLicense = false, candemote = true, hasRadio = true,
})
TEAM_MAFIA = DarkRP.createJob("*VIP* Mafieux", { color = Color(255, 0, 0, 255), model = {"models/fearless/mafia02.mdl", "models/fearless/mafia04.mdl", "models/fearless/mafia06.mdl"}, description = [[Votre rôle est de conquérir la ville. Tuer et voler est son but.]], weapons = {"m9k_deagle"}, command = "mafieuxvip", max = 8, salary = 80, admin = 0, vote = false, hasLicense = false, candemote = true, hasRadio = true, customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "vip" or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "admin" end,
CustomCheckFailMsg = "Le job est réservé aux vip seulement."
})
TEAM_GANGSTER = DarkRP.createJob("*VIP* Gangster", { color = Color(0, 0, 0, 255), model = {"models/sd/players/[dbs_brawler]-head_brawler_dbs.mdl", "models/sd/players/[dbs_brawler_2]-head_brawler_dbs.mdl", "models/sd/players/[dbs_grappler_2].mdl"}, description = [[Votre rôle est de conquérir la ville. Tuer et voler est son but.]], weapons = {"m9k_model3russian"}, command = "gangstervip", max = 8, salary = 80, admin = 0, vote = false, hasLicense = false, candemote = true, hasRadio = true, customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "vip" or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "admin" end,
CustomCheckFailMsg = "Le job est réservé aux vip seulement."
})
TEAM_COMMI = DarkRP.createJob("Commissaire", { color = Color(0, 71, 255, 255), model = {"models/player/uk_police/uk_police_04.mdl", "models/player/uk_police/uk_police_05.mdl"}, description = [[Votre rôle est de protéger la ville. Ils doivent arreter les bandis et les tuer au cas ou de grands danger.]], weapons = {"arrest_stick", "unarrest_stick", "lockpick", "door_ram", "m9k_ump45", "weapon_cuff_standard", "stungun", "weaponchecker"}, command = "commisaire", max = 1, salary = 50, admin = 0, vote = true, hasLicense = true, candemote = true, category = "Civil Protection", hasRadio = true,
})
TEAM_STAFF = DarkRP.createJob("Staff", { color = Color(255, 0, 0, 255), model = {"models/player/anon/anon.mdl", "models/avengers/iron man/mark7_player.mdl", "models/player/hobo387/injbatman.mdl"}, description = [[]], weapons = {"m9k_ak47", "weapon_stungun"}, command = "staff", max = 99, salary = 80000, admin = 0, vote = false, hasLicense = false, candemote = true, customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "admin" end,
CustomCheckFailMsg = "Le job est réservé aux staff seulement."
})
TEAM_AVOCAT = DarkRP.createJob("Avocat", { color = Color(136, 147, 150, 255), model = {"models/grandtheftauto5/michael.mdl"}, description = [[Vous devez défendre les gens qui arrivent en prison.]], weapons = {"weapon_stungun"}, command = "avocat", salary = 80, max = 2, admin = 0, vote = false, hasLicense = false, candemote = true,
})
TEAM_MOB = DarkRP.createJob("Tueur a gages", { color = Color(242, 88, 88, 255), model = {"models/walter_white.mdl"}, description = [[Vous tuez des gens de la part de personnes qui vous le demandent.]], weapons = {"m9k_aw50"}, command = "hitman", salary = 80, max = 2, admin = 0, vote = false, hasLicense = false, candemote = true,
})
TEAM_BRAQUEUR = DarkRP.createJob("Braqueur", { color = Color(117, 117, 117, 255), model = {"models/fearless/suit07.mdl"}, description = [[Vous braquer les gens ou la banque.]], weapons = {}, command = "braqueur", salary = 45, max = 7, admin = 0, vote = false, hasLicense = false, candemote = true, hasRadio = true,
})
TEAM_BRAQUEUR = DarkRP.createJob("Chef des Braqueurs", { color = Color(117, 117, 117, 255), model = {"models/fearless/suit07.mdl"}, description = [[Vous braquer les gens ou la banque.]], weapons = {"m9k_remington1858"}, command = "chefbraqueur", salary = 80, max = 1, admin = 0, vote = true, hasLicense = false, candemote = true, hasRadio = true,
})
TEAM_BRAQUEUR = DarkRP.createJob("*VIP* Braqueur", { color = Color(117, 117, 117, 255), model = {"models/fearless/suit07.mdl"}, description = [[Vous braquer les gens ou la banque.]], weapons = {"m9k_model3russian"}, command = "vipbraqueur", salary = 60, max = 7, admin = 0, vote = false, hasLicense = false, candemote = true, hasRadio = true, customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "vip" or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "admin" end,
CustomCheckFailMsg = "Le job est réservé aux vip seulement."
})
TEAM_PSYCHO = DarkRP.createJob("*VIP* Psychopathe", { color = Color(50, 255, 0, 255), model = {"models/humans/group02/player/tale_04.mdl", "models/humans/group02/player/temale_01.mdl", "models/humans/group02/player/tale_07.mdl"}, description = [[Vous devez tuer des gens chez vous ou discrètement chez eux ou dans la rue.]], weapons = {"m9k_machete"}, command = "psycho", max = 2, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "vip" or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "admin" end,
CustomCheckFailMsg = "Le job est réservé aux vip seulement."
})
TEAM_PSYCHOLOGUE = DarkRP.createJob("Psychologue", { color = Color(188, 0, 255, 255), model = {"models/humans/group02/player/tale_04.mdl", "models/humans/group02/player/temale_01.mdl", "models/humans/group02/player/tale_07.mdl"}, description = [[Vous devez juste aider les gens qui sont pas bien.]], weapons = {}, command = "psychologue", max = 1, salary = 60, admin = 0, vote = false, hasLicense = false, candemote = false,
})
TEAM_MAYOR = DarkRP.createJob("Maire", { color = Color(255, 0, 0, 255), model = {"models/obama/obama.mdl"}, description = [[Vous devez diriger la ville ! Dictateur ou non, tant que les danger sont pas la tant mieux !]], weapons = {}, command = "maire", max = 1, salary = 60, admin = 0, vote = true, hasLicense = true, candemote = false, mayor = true, hasRadio = true, hasRadio = true, PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Le maire est mort.")
else
DarkRP.notifyAll(0, 4, "Le maire est mort.")
end
end
})
TEAM_MAFIA = DarkRP.createJob("Parrain", { color = Color(255, 0, 0, 255), model = {"models/vito.mdl"}, description = [[Votre rôle est de conquérir la ville. Tuer et voler est son but.]], weapons = {"m9k_1887winchester"}, command = "parrain", max = 1, salary = 80, admin = 0, vote = true, hasLicense = false, candemote = true, hasRadio = true,
})
TEAM_GANGSTER = DarkRP.createJob("Chef des gangsters", { color = Color(0, 0, 0, 255), model = {"models/sd/players/[dbs_striker]-head_quick_dbs.mdl"}, description = [[Votre rôle est de conquérir la ville. Tuer et voler est son but.]], weapons = {"m9k_dbarrel"}, command = "gangsterchief", max = 1, salary = 45, admin = 0, vote = true, hasLicense = false, candemote = true, hasRadio = true,
})