Probleme Job

  • Initiateur de la discussion AlbanC
  • Date de début
  • Initiateur de la discussion
A

AlbanC

Geek suprême
Messages
72
Score réaction
2
Points
100
Voici Le Code En Question :
Code:
-- People often copy jobs. When they do, the GM table does not exist anymore.
-- This line makes the job code work both inside and outside of gamemode files.
-- You should not copy this line into your code.
local GAMEMODE = GAMEMODE or GM
--[[--------------------------------------------------------
Default teams. Please do not edit this file. Please use the darkrpmod addon instead.
--------------------------------------------------------]]
TEAM_CITIZEN = DarkRP.createJob("Citoyen", { color = Color(20, 150, 20, 255), model = { "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.mdl", "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 = [[Le citoyen est le niveau le plus basique de la société. Vous n'avez pas de rôle spécifique pour la ville.]], weapons = {"weapon_arc_atmcard"}, command = "citoyen", max = 0, salary = 50, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = set_default_skin,
})
TEAM_VIOL = DarkRP.createJob("Violeur", { color = Color(20, 150, 20, 255), model = { "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.mdl", "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 = [[Le citoyen est le niveau le plus basique de la société. Vous n'avez pas de rôle spécifique pour la ville.]], weapons = {"weapon_arc_atmcard"}, command = "viol", max = 0, salary = 50, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = set_default_skin,
})
TEAM_VCMOD = DarkRP.createJob("Dépanneur", { color = Color(255, 12, 12, 255), model = {"models/player/Group01/Male_09.mdl"}, description = [[Les gens vous paie pour réparé leur vehicule]], weapons = {"weapon_arc_atmcard", "vc_wrench"}, command = "depanneur", max = 5, salary = 254, admin = 0, vote = false, hasLicense = true, candemote = false, category = "Citoyen"
})
TEAM_HOBO = DarkRP.createJob("SDF", { color = Color(80, 45, 0, 255), model = "models/player/eli.mdl", description = [[Vous êtes le membre le plus bas de la société. Tout le monde se moque de vous. Vous n'avez pas de maison. Prier pour de la nourriture et de l'argent. Chanter pour obtenir de l'argent. Faites votre propre maison en bois, quelque part dans un coin.]], weapons = {"weapon_arc_atmcard"}, command = "sdf", max = 4, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = false, hobo = true, category = "Citoyen", PlayerSpawn = set_default_skin,
})
TEAM_POLICE = DarkRP.createJob("Gendarme", { color = Color(25, 25, 170, 255), model = {"models/player/nypd/male_02.mdl", "models/player/nypd/male_04.mdl", "models/player/nypd/male_05.mdl", "models/player/nypd/male_06.mdl", "models/player/nypd/male_07.mdl", "models/player/nypd/male_08.mdl", "models/player/nypd/male_09.mdl","models/player/kerry/f_sheriff_03.mdl","models/player/kerry/f_sheriff_04.mdl","models/player/kerry/thalia_sheriff_02.mdl"}, description = [[L'agent de police se doit de protéger chaque citoyen qui vit dans la ville. Vous avez le pouvoir d'arrêter les criminels et protéger les innocents. Frapper un joueur avec l'Arrest Stick pour les mettre en prison. Le bélier peut briser la porte d'un Illégal, il est nécessaire d'avoir un mandat pour le faire.]], weapons = {"weapon_arc_atmcard", "sj_breathalyzer", "arrest_stick", "stungun", "weapon_cuff_elastic", "stunstick", "door_ram", "weapon_checker", "policebadgewallet", "driving_license_checker"}, command = "police", max = 8, salary = 350, admin = 0, vote = false, hasLicense = true, hasRadio = true, level = 10, ammo = { ["pistol"] = 60, }, category = "Police", PlayerSpawn = function(ply) set_default_skin(ply) ply:SetBodygroup(0,1) ply:SetBodygroup(1,1) ply:SetBodygroup(2,1) end,
})
TEAM_CHIEF = DarkRP.createJob("Commissaire", { color = Color(25, 25, 170, 255), model = "models/player/uk_police/uk_police_04.mdl", description = [[Le Comissaire est le chef des Agents de police. Coordonner les forces de police pour faire respecter la loi dans la ville. Taper /wanted <name> pour alerter le public à la présence d'un Illégal.]], weapons = {"weapon_arc_atmcard", "sj_breathalyzer", "arrest_stick", "stungun", "weapon_cuff_elastic", "stunstick", "door_ram", "weapon_checker", "policebadgewallet", "driving_license_checker"}, command = "commissaire", max = 1, salary = 450, admin = 0, vote = true, hasLicense = true, hasRadio = true, level = 10, chief = true, ammo = { ["pistol"] = 60, }, category = "Civil Protection", category = "Police", PlayerSpawn = set_default_skin,
})
TEAM_SWAT = DarkRP.createJob("S.W.A.T [VIP]", { color = Color(25, 25, 170, 255), model = {"models/player/pmc_4/pmc__05.mdl", "models/player/pmc_4/pmc__06.mdl", "models/player/pmc_4/pmc__07.mdl", "models/player/pmc_4/pmc__08.mdl", "models/player/pmc_4/pmc__09.mdl", "models/player/pmc_4/pmc__10.mdl", "models/player/pmc_4/pmc__11.mdl", "models/player/pmc_4/pmc__12.mdl", "models/player/pmc_4/pmc__13.mdl", "models/player/pmc_4/pmc__14.mdl"}, description = [[Le S.W.A.T peut intervenir quand la police a du mal.]], weapons = {"weapon_arc_atmcard", "sj_breathalyzer", "arrest_stick", "stungun", "weapon_cuff_elastic", "stunstick", "door_ram", "weapon_checker", "policebadgewallet", "weapon_policeshield", "weapon_sh_flashbang", "driving_license_checker"}, command = "swat", max = 4, salary = 400, admin = 0, vote = false, hasLicense = true, hasRadio = true, category = "Police", PlayerSpawn = set_default_skin, customCheck = function(ply) return ply:GetUserGroup("usergroup") == "VIP" or ply:IsAdmin() end, -- The extra check function. Enter nil or nothing to not have a restriction CustomCheckFailMsg = "Ce job est réservé aux VIP !" -- Allows you to tell the user what went wrong when attempting to switch jobs
})
TEAM_CHEFSWAT = DarkRP.createJob("Chef S.W.A.T [VIP]", { color = Color(25, 25, 170, 255), model = "models/player/pmc_4/pmc__01.mdl", description = [[Le chef du S.W.A.T dirige ses unités.]], weapons = {"weapon_arc_atmcard", "sj_breathalyzer", "arrest_stick", "stungun", "weapon_cuff_elastic", "stunstick", "door_ram", "weapon_checker", "policebadgewallet", "weapon_policeshield", "weapon_sh_flashbang", "driving_license_checker"}, command = "chefswat", max = 1, salary = 500, admin = 0, vote = false, hasRadio = true, hasLicense = true, category = "Police", PlayerSpawn = set_default_skin, customCheck = function(ply) return ply:GetUserGroup("usergroup") == "VIP" or ply:IsAdmin() end, -- The extra check function. Enter nil or nothing to not have a restriction CustomCheckFailMsg = "Ce job est réservé aux VIP !" -- Allows you to tell the user what went wrong when attempting to switch jobs
})
TEAM_SA = DarkRP.createJob("Agent secret", { color = Color(25, 25, 170, 255), model = "models/player/bond.mdl", description = [[Les agents secrets peuvent s'infiltrer dans des gangs ou des réseaux pour que la police puisse ensuite intervenir.]], weapons = {"weapon_arc_atmcard", "arrest_stick", "stungun", "weapon_cuff_elastic", "stunstick", "door_ram", "weapon_checker", "policebadgewallet","ultimate_disguise_kit", "driving_license_checker"}, command = "agentsecret", max = 2, salary = 300, admin = 0, vote = false, hasRadio = true, level = 10, category = "Police", PlayerSpawn = set_default_skin,
})
TEAM_MAYOR = DarkRP.createJob("Maire", { color = Color(150, 20, 20, 255), model = "models/player/breen.mdl", description = [[Le maire de la ville crée des lois pour gouverner la ville. Si vous êtes le maire vous pouvez créer et accepter des mandats. Taper /wanted <nom> pour faire un mandat. Taper /lockdown pour initier un couvre-feur dans la ville et /unlockdown pour stopper un couvre-feu]], weapons = {"weapon_arc_atmcard", "driving_license_checker"}, command = "maire", max = 1, salary = 200, admin = 0, vote = true, hasLicense = false, hasRadio = true, level = 15, mayor = true, category = "Police", PlayerSpawn = set_default_skin,
})
TEAM_BODYGUARD = DarkRP.createJob("Garde du corps", { color = Color(0,200,50,255), model = {"models/player/guard_pack/guard_02.mdl", "models/player/guard_pack/guard_03.mdl", "models/player/guard_pack/guard_04.mdl", "models/player/guard_pack/guard_05.mdl", "models/player/guard_pack/guard_06.mdl", "models/player/guard_pack/guard_07.mdl", "models/player/guard_pack/guard_08.mdl", "models/player/guard_pack/guard_09.mdl"}, description = [[Les gens vous payent pour leur protection personnelle ou matérielle.]], weapons = {"weapon_arc_atmcard", "weapon_checker","weapon_cuff_elastic"}, command = "garde", max = 4, salary = 50, admin = 0, vote = false, hasLicense = true, category = "Police", PlayerSpawn = set_default_skin,
})
TEAM_MAYORGUARD = DarkRP.createJob("Garde du Maire", { color = Color(0,200,50,255), model = {"models/player/suits/male_01_open_tie.mdl", "models/player/suits/male_02_open_tie.mdl", "models/player/suits/male_03_open_tie.mdl", "models/player/suits/male_04_open_tie.mdl", "models/player/suits/male_05_open_tie.mdl", "models/player/suits/male_06_open_tie.mdl", "models/player/suits/male_07_open_tie.mdl", "models/player/suits/male_08_open_tie.mdl", "models/player/suits/male_09_open_tie.mdl"}, description = [[Vous êtes la garde personnelle du maire]], weapons = {"weapon_arc_atmcard", "weapon_checker","weapon_cuff_elastic"}, command = "gardemaire", max = 4, salary = 50, admin = 0, vote = false, hasLicense = true, category = "Police", PlayerSpawn = function (ply) set_default_skin(ply) ply:SetSkin(9) end,
})
TEAM_BANKER = DarkRP.createJob("Banquier", { color = Color(102,0,102,255), model = {"models/player/suits/male_04_closed_tie.mdl"}, description = [[Les banquiers s'occupent des imprimantes des autres joueurs, ils prennent un pourcentage sur l'argent généré.]], weapons = {"weapon_arc_atmcard", "weapon_extinguisher"}, command = "banquier", max = 2, salary = 50, admin = 0, vote = false, category = "Citoyen", hasLicense = false, PlayerSpawn = function(ply) set_default_skin(ply) ply:SetSkin(4) end
})
TEAM_MEDIC = DarkRP.createJob("Médecin", { color = Color(47, 79, 79, 255), model = {"models/player/apsci_cohrt.mdl", "models/player/apsci_male_02.mdl", "models/player/apsci_male_04.mdl"}, description = [[Avec vos connaissances médicales vous travaillez pour restaurer la santé des joueurs. Sans un médecin, les gens ne peuvent pas être guéris. Clic gauche avec le kit médical pour soigner les autres joueurs. Faites un clic droit avec le kit médical pour vous guérir.]], weapons = {"weapon_arc_atmcard", "med_kit"}, command = "medecin", max = 2, salary = 200, admin = 0, vote = false, hasLicense = false, medic = true, category = "Citoyen", PlayerSpawn = set_default_skin,
})
TEAM_COOK = DarkRP.createJob("Cuisinier", { color = Color(238, 99, 99, 255), model = {"weapon_arc_atmcard", "models/fearless/chef1.mdl", "models/fearless/chef2.mdl"}, description = [[En tant que cuisinier, il est de votre responsabilité de nourrir les autres membres de la ville. Vous pouvez acheter de la nourriture dans le menu F4.]], weapons = {}, command = "cuisinier", max = 4, salary = 50, admin = 0, vote = false, hasLicense = false, cook = true, category = "Citoyen", PlayerSpawn = set_default_skin,
})
TEAM_GUN = DarkRP.createJob("Vendeur d'armes", { color = Color(255, 140, 0, 255), model = "models/player/arnold_schwarzenegger.mdl", description = [[Le vendeur d'armes est la seule personne qui peut vendre des armes à d'autres personnes légalement. Assurez-vous que vous n'êtes pas pris à vendre illégalement des armes à feu au public ! Vous pourriez être arrêté !]], weapons = {"weapon_arc_atmcard"}, command = "armes", max = 2, salary = 50, admin = 0, vote = false, hasLicense = false, category = "Citoyen", PlayerSpawn = set_default_skin,
})
TEAM_MERCENARY = DarkRP.createJob("Mercenaire", { color = Color(102,255,0,255), model = {"models/player/phoenix.mdl","models/player/meryl.mdl"}, description = [[Les gens vous payent pour leur protection personnelle ou matérielle. Les gangs peuvent aussi vous embaucher.]], weapons = {"weapon_arc_atmcard"}, command = "mercenaire", max = 4, salary = 50, admin = 0, vote = false, hasLicense = false, category = "Illégal", PlayerSpawn = set_default_skin,
})
TEAM_BLACKGUN = DarkRP.createJob("Marchand noir", { color = Color(200, 0, 0, 255), model = {"models/player/korka007/wick.mdl", "models/player/bobert/talia.mdl"}, description = [[Le marchand noir est un vendeur d'armes à la sauvette, donc illégal, il ne peut pas avoir de magasins et faites attention de ne pas vous faire attraper par la police !]], weapons = {"weapon_arc_atmcard"}, command = "armesnoir", max = 2, salary = 50, admin = 0, vote = false, hasLicense = false, category = "Illégal", PlayerSpawn = set_default_skin,
})
TEAM_HACKER = DarkRP.createJob("Hacker [VIP]", { color = Color(200, 0, 0, 255), model = "models/player/aiden_pearce.mdl", description = [[Un hacker peut pirater les ATM et bien d'autres avec son téléphone.(pour sortir de la vision d'un joueur touche pour recharger)]], weapons = {"weapon_arc_atmcard", "weapon_arc_atmhack", "weapon_hack_phone"}, command = "hacker", max = 2, salary = 50, admin = 0, vote = false, hasLicense = false, category = "Illégal", PlayerSpawn = function(ply) set_default_skin(ply) ply:SetBodygroup(1, 1) end, customCheck = function(ply) return ply:GetUserGroup("usergroup") == "VIP" or ply:IsAdmin() end, -- The extra check function. Enter nil or nothing to not have a restriction CustomCheckFailMsg = "Ce job est réservé aux VIP !" -- Allows you to tell the user what went wrong when attempting to switch jobs
})
TEAM_THIEF = DarkRP.createJob("Voleur", { color = Color(0, 0, 0, 255), model = {"models/h-d/2sg/simonplayer.mdl", "models/splinks/kf2/characters/player_ana.mdl"}, description = [[Vous êtes un voleur, voler les gens ainsi que leurs voitures, cambrioler leurs maisons et voler leurs printers.]], weapons = {"weapon_arc_atmcard", "lockpick2", "keypad_cracker", "pickpocket"}, command = "voleur", max = 2, salary = 50, admin = 0, vote = false, hasLicense = false, category = "Illégal", PlayerSpawn = set_default_skin,
})
TEAM_HITMAN = DarkRP.createJob("Tueur à gages", { color = Color(0, 0, 0, 255), model = "models/player/agent_47.mdl", description = [[Les gens vous embauchent pour envoyer des personnes qui vous nuisent pour un long séjour.]], weapons = {"weapon_arc_atmcard"}, command = "hitman", max = 2, salary = 50, admin = 0, vote = false, hasLicense = false, category = "Illégal", PlayerSpawn = set_default_skin,
})
TEAM_PSYCO = DarkRP.createJob("Psychopathe [VIP]", { color = Color(220, 0, 0, 255), model = {"models/player/Group01/Male_04.mdl"}, description = [[Le psychopathe doit convaincre ses victimes d'aller chez lui afin de les séquestrer. Utiliser la machette qu'en cas de légitime défense ou contre vos victimes.]], weapons = {"weapon_arc_atmcard", "m9k_machete"}, command = "psychopathe", max = 2, salary = 50, admin = 0, vote = false, hasLicense = false, category = "Illégal", PlayerSpawn = set_default_skin, customCheck = function(ply) return ply:GetUserGroup("usergroup") == "VIP" or ply:IsAdmin() end, -- The extra check function. Enter nil or nothing to not have a restriction CustomCheckFailMsg = "Ce job est réservé aux VIP !" -- Allows you to tell the user what went wrong when attempting to switch jobs
})
TEAM_DRUGMAKER = DarkRP.createJob("Fabricant de weed", { color = Color(51, 204, 255, 255), model = "models/player/odessa.mdl", description = [[Vous fabriquez de la drogue, utilisez votre tablette pour acheter votre matériel, rester à l'écart de la police ! Vous devez cultiver dans une propriété achetée.]], weapons = {"weapon_arc_atmcard", "sent_tablet"}, command = "weed", max = 2, salary = 50, admin = 0, vote = false, hasLicense = false, category = "Illégal", PlayerSpawn = set_default_skin,
})
TEAM_METH = DarkRP.createJob("Fabricant de meth", { color = Color(51, 204, 255, 255), model = "models/player/Group01/Male_04.mdl", description = [[Vous fabriquez de la méthamphétamine, faites attention aux vapeurs toxiques ainsi qu'à la police ! Vous devez fabriquer dans une propriété achetée.]], weapons = {"weapon_arc_atmcard"}, command = "meth", max = 2, salary = 50, admin = 0, vote = false, hasLicense = false, category = "Illégal", PlayerSpawn = set_default_skin,
})
TEAM_MAFIEUX = DarkRP.createJob("Mafieux", { color = Color(0,0,0,255), model = {"models/player/suits/male_01_closed_coat_tie.mdl", "models/player/suits/male_02_closed_coat_tie.mdl", "models/player/suits/male_03_closed_coat_tie.mdl", "models/player/suits/male_04_closed_coat_tie.mdl", "models/player/suits/male_05_closed_coat_tie.mdl", "models/player/suits/male_06_closed_coat_tie.mdl", "models/player/suits/male_07_closed_coat_tie.mdl", "models/player/suits/male_08_closed_coat_tie.mdl", "models/player/suits/male_09_closed_coat_tie.mdl"}, description = [[Vous êtes membre d'une organisation criminelle dirigé par le parrain.]], weapons = {"weapon_arc_atmcard"}, command = "mafieux", max = 6, salary = 50, admin = 0, vote = false, hasLicense = false, category = "Illégal", PlayerSpawn = set_default_skin,
})
TEAM_CHEFMAFIEUX = DarkRP.createJob("Parrain", { color = Color(0,0,0,255), model = {"models/vito.mdl"}, description = [[Le Parrain est le chef des mafieux. Il les dirige.]], weapons = {"weapon_arc_atmcard"}, command = "parrain", max = 1, salary = 50, admin = 0, vote = false, hasLicense = false, category = "Illégal", PlayerSpawn = set_default_skin, customCheck = function(ply) return ply:GetUserGroup("usergroup") == "VIP" or ply:IsAdmin() end, -- The extra check function. Enter nil or nothing to not have a restriction CustomCheckFailMsg = "Ce job est réservé aux VIP !" -- Allows you to tell the user what went wrong when attempting to switch jobs
})
TEAM_GANG = DarkRP.createJob("Gangster", { color = Color(75, 75, 75, 255), model = {"models/ms13/slow_1.mdl", "models/ms13/slow_3.mdl"}, description = [[La personne la plus faible de la criminalité.]], weapons = {"weapon_arc_atmcard"}, command = "dgangsters", max = 6, salary = 50, admin = 0, vote = false, hasLicense = false, category = "Illégal", PlayerSpawn = set_default_skin,
})
TEAM_CHEFGANG = DarkRP.createJob("Chef Gangster [VIP]", { color = Color(75, 75, 75, 255), model = {"models/ms13/slow_2.mdl"}, description = [[La personne la plus faible de la criminalité.]], weapons = {"weapon_arc_atmcard"}, command = "chefgangster", max = 1, salary = 50, admin = 0, vote = false, hasLicense = false, category = "Illégal", PlayerSpawn = set_default_skin, customCheck = function(ply) return ply:GetUserGroup("usergroup") == "VIP" or ply:IsAdmin() end, -- The extra check function. Enter nil or nothing to not have a restriction CustomCheckFailMsg = "Ce job est réservé aux VIP !" -- Allows you to tell the user what went wrong when attempting to switch jobs
})
TEAM_STAFF = DarkRP.createJob("Staff", { color = Color(200, 0, 0, 255), model = {"models/player/lordvipes/mk9_cyrax/cyrax.mdl", "models/player/anon/anon.mdl"}, description = [[Réservé aux membres du staff.]], weapons = {"weapon_arc_atmcard", "stunstick", "driving_license_checker", "vc_wrench", "tow_attach"}, command = "staff", max = 0, salary = 5000, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = set_default_skin, customCheck = function(ply) return ply:IsAdmin() end, -- The extra check function. Enter nil or nothing to not have a restriction CustomCheckFailMsg = "Ce job est réservé aux Staff !" -- Allows you to tell the user what went wrong when attempting to switch jobs
})
-- Compatibility for when default teams are disabled
TEAM_CITIZEN = TEAM_CITIZEN or -1
TEAM_POLICE = TEAM_POLICE or -1
TEAM_GANG = TEAM_GANG or -1
TEAM_MOB = TEAM_MOB or -1
TEAM_GUN = TEAM_GUN or -1
TEAM_MEDIC = TEAM_MEDIC or -1
TEAM_CHIEF = TEAM_CHIEF or -1
TEAM_MAYOR = TEAM_MAYOR or -1
TEAM_HOBO = TEAM_HOBO or -1
TEAM_COOK = TEAM_COOK or -1
-- Door groups
AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("Gundealer only", TEAM_GUN)
-- Agendas
DarkRP.createAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
DarkRP.createAgenda("Police agenda", {TEAM_MAYOR, TEAM_CHIEF}, {TEAM_POLICE})
-- Group chats
DarkRP.createGroupChat(function(ply) return ply:isCP() end)
DarkRP.createGroupChat(TEAM_MOB, TEAM_GANG)
DarkRP.createGroupChat(function(listener, ply) return not ply or ply:Team() == listener:Team() end)
-- Initial team when first spawning
GAMEMODE.DefaultTeam = TEAM_CITIZEN
-- Teams that belong to Civil Protection
GAMEMODE.CivilProtection = { [TEAM_POLICE] = true, [TEAM_CHIEF] = true, [TEAM_MAYOR] = true,
}
-- Hitman team
DarkRP.addHitmanTeam(TEAM_MOB)
-- Demote groups
DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
-- Default categories
DarkRP.createCategory{ name = "Citoyen", categorises = "jobs", startExpanded = true, color = Color(0, 107, 0, 255), canSee = fp{fn.Id, true}, sortOrder = 100,
}
DarkRP.createCategory{ name = "Citoyens", categorises = "jobs", startExpanded = true, color = Color(0, 107, 0, 255), canSee = fp{fn.Id, true}, sortOrder = 100,
}
DarkRP.createCategory{ name = "Civil Protection", categorises = "jobs", startExpanded = true, color = Color(25, 25, 170, 255), canSee = fp{fn.Id, true}, sortOrder = 101,
}
DarkRP.createCategory{ name = "Gangsters", categorises = "jobs", startExpanded = true, color = Color(75, 75, 75, 255), canSee = fp{fn.Id, true}, sortOrder = 101,
}
DarkRP.createCategory{ name = "Other", categorises = "jobs", startExpanded = true, color = Color(0, 107, 0, 255), canSee = fp{fn.Id, true}, sortOrder = 255,
}
DarkRP.createCategory{ name = "Illégal", categorises = "jobs", startExpanded = true, color = Color(0, 107, 0, 255), canSee = fp{fn.Id, true}, sortOrder = 255,
}
DarkRP.createCategory{ name = "Police", categorises = "jobs", startExpanded = false, color = Color(0, 0, 0, 255), canSee = function(ply) return true end, sortOrder = 0
}
Quand J'allume le serveur et que je vais dans > F4 menu > Metiez > Je Vois encore les jobs de base
aider moi
 
Jean Dauphin

Jean Dauphin

Geek suprême
Messages
579
Score réaction
94
Points
150
Cekezy à dit:
Merci du partage de tes jobs
Mdr toi t'es vraiment pas top, les jobs on en trouve partout sur internet
 
  • Initiateur de la discussion
A

AlbanC

Geek suprême
Messages
72
Score réaction
2
Points
100
Svp Concentré vous Sur Mon Sujet svp
 
Akulla

Akulla

Helpeur Divin
Messages
3 808
Score réaction
2 240
Points
550
AlbanC à dit:
Svp Concentré vous Sur Mon Sujet svp
Svp ta darkrpmodification stp stp ta modifie le defaultjob dans le setting.lua stpstp
 
  • Initiateur de la discussion
A

AlbanC

Geek suprême
Messages
72
Score réaction
2
Points
100
Akulla à dit:
Svp ta darkrpmodification stp stp ta modifie le defaultjob dans le setting.lua stpstp
pk stp ?
 
DestoGames

DestoGames

Geek suprême
Messages
667
Score réaction
84
Points
140
Pourquoi le 2ème jobs est violeur ? Vous aimez tellement ces gens ? :c
Et c'est pas vraiment un métier violeur .. Après c'est mon avis :p
 
SXZA

SXZA

Geek
Messages
81
Score réaction
20
Points
60
Tu vas ici : /garrysmod/addons/darkrpmodification/lua/darkrp_config
puis dans le fichier lua : disabled_default.lua
et tu trouves la ligne : ["citizen"] = false,
que tu remplaces par : ["citizen"] = true.
puis tu vas ici : /garrysmod/addons/darkrpmodification/lua/darkrp_customthings
puis dans le fichier lua : job.lua
et tu trouves la ligne : GAMEMODE.DefaultTeam = TEAM_CITIZEN
que tu remplace par GAMEMODE.DefaultTeam = TEAM_CITOYEN

Biensûr pour que ce soit prit en compte, tu vas ici, dans ton job.lua
TEAM_CITIZEN = DarkRP.createJob("Citoyen", {
et tu modifies le TEAM_CITIZEN par TEAM_CITOYEN

Voila, c'est sûr que ça fonctionne, bon jeu à toi.
 
  • J'aime
Réactions: Cekezy
SXZA

SXZA

Geek
Messages
81
Score réaction
20
Points
60
Cekezy à dit:
tu ty connais dans dans la config gmod ?
Je pourrais dire que oui, mais pas vraiment, le lua c'est tellement simple que t'apprends rapidement, perso je dirais que je suis assez bien renseigné.
 
  • J'aime
Réactions: Cekezy
SXZA

SXZA

Geek
Messages
81
Score réaction
20
Points
60
La moindre faute dans les job = erreur lua puis spawn sous la map, une " de trop, une ) oublié et c'est fichu 4Head
 
Treadstonepbs

Treadstonepbs

Psychopathe
Messages
657
Score réaction
217
Points
230
SXZA à dit:
La moindre faute dans les job = erreur lua puis spawn sous la map, une " de trop, une ) oublié et c'est fichu 4Head
Question de talents DatSheffy.
 
Discord d'entraide
Rejoignz-nous sur Discord