Mais jobs personaliser ne s'affiche pas

  • Initiateur de la discussion DevilModding
  • Date de début
  • Initiateur de la discussion
  • Banni
DevilModding

DevilModding

Geek
Messages
416
Score réaction
40
Points
80
Bonjours, j'ai creer des jobs moi meme avec le site The coding Best. mais quand je lance mon serveur, les jobs de base apparait mais pas les jobs que j'ai creer. il n'y as aucune erreur de codage je m'en suis assurer alors faut-il mettre un truc en false ou true dans un fichier ? merci d'avance
 
Cluff

Cluff

Geek suprême
Messages
851
Score réaction
382
Points
160
Donne nous le code Lua de ton job
 
  • Initiateur de la discussion
  • Banni
DevilModding

DevilModding

Geek
Messages
416
Score réaction
40
Points
80
Voila le code complet de tout le fichier job.lua

TEAM_JUGE = DarkRP.createJob("JUGE", {
color = Color(100, 50, 3, 102),
model = {"models/humans/group02/player/tale_09.mdl"},
description = [[Le juge est un magistrat qui remplit une fonction de jugement et non d'arbitrage dans une plaidoirie, qui est donc chargez de trancher les litiges opposant des parties, ou plaideurs .]],
weapons = {"weapon_arc_atmcard","weapon_fists","pocket"},
command = "juge",
max = 1,
salary = 750,
admin = 0,
vote = true,
hasLicense = false,
})

TEAM_AVOC = DarkRP.createJob("Avocat", {
color = Color(100, 50, 3, 102),
model = {"models/humans/group02/player/tale_09.mdl"},
description = [[ L'avocat est un juriste dont la fonction traditionnelle est de conseiller et de defendre ses clients, personnes physiques ou morales, en justice, en plaidant pour faire valoir leurs interets et, plus generalement, pour les representer. .]],
weapons = {"weapon_arc_atmcard","weapon_fists","pocket"},
command = "Avoc",
max = 5,
salary = 75,
admin = 0,
vote = true,
hasLicense = false,
})

TEAM_JOURNAL = DarkRP.createJob("Journaliste", {
color = Color(100, 50, 3, 102),
model = {"models/humans/group02/player/tale_09.mdl"},
description = [[Un journaliste est une personne dont la profession est de rassembler des informations, de rediger un article ou mettre en forme un reportage afin de presenter des faits qui contribuent à l'actualite et l'information du public. .]],
weapons = {"weapon_arc_atmcard","weapon_fists","pocket"},
command = "journal",
max = 3,
salary = 45,
admin = 0,
vote = true,
hasLicense = false,
})

TEAM_BRINK = DarkRP.createJob("Convoyeur de brink", {
color = Color(0 ,0, 255, 255),
model = {"models/player/phoenix.mdl"},
description = [[]],
weapons = {"weapon_fists","weapon_arc_atmcard","pocket"},
command = "brink",
max = 1,
salary = 50,
admin = 0,
vote = false,
hasLicense = true,
})

TEAM_MERCENAIRE = DarkRP.createJob("*VIP* Mercenaire", {
color = Color(100, 30, 3, 122),
model = {"models/player/phoenix.mdl"},
description = [[Un mercenaire est un combattant de metier qui est recrutez moyennant finance par un etat, une entreprise, un mouvement politique, ou toute autre organisation legale ou non .]],
weapons = {"weapon_fists","weapon_arc_atmcard","pocket"},
command = "mercenaire",
max = 1,
salary = 45,
admin = 0,
vote = true,
hasLicense = true,
customCheck = function(ply) return ply:CheckGroup("VIP") or ply:IsAdmin() end,
})

TEAM_PARRAIN = DarkRP.createJob("Parrain", {
color = Color(100, 50, 3, 102),
model = {"models/player/humans/suits1/male_01.mdl","models/player/humans/suits1/male_02.mdl","models/player/humans/suits1/male_03.mdl"},
description = [[Le terme Parrain designe un chef d'une famille mafieuse.Il a essentiellement trois fonctions :une fonction dirigeante : il chapeaute le crime ,une fonction de mediateur pour arbitrer les conflits à l'intérieur de sa famille au sens large ;
une fonction de conseiller des petites gens1.Il se distingue des autres mafieux par son audace, sa ferocite (on pense ici par exemple à Don Corleone), un sens aigu des rapports de force et des relations humaines, et une autorite naturelle lui permettant de s'imposer aux autres. .]],
weapons = {"weapon_arc_atmcard","weapon_fists","pocket"},
command = "parrain",
max = 1,
salary = 45,
admin = 0,
vote = true,
hasLicense = false,
})

TEAM_MAFIA = DarkRP.createJob("Mafia", {
color = Color(100, 50, 3, 102),
model = {"models/fearless/mafia06.mdl","models/fearless/mafia05.mdl","models/fearless/mafia04.mdl"},
description = [[Une mafia est une organisation criminelle dont les activites sont soumises a une direction collegiale occulte et qui repose sur une strategie d’infiltration de la societe civile et des institutions. On parle egalement de systeme mafieux. Les membres sont appeles « mafieux »]],
weapons = {"weapon_fists","weapon_arc_atmcard"},
command = "mafia",
max = 5,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
})

TEAM_CHEFGANGSTER = DarkRP.createJob("Chef des Gangsters", {
color = Color(25, 25, 25, 255),
model = "models/player/gman_high.mdl",
description = [[Le chef des gangsters est le patron des criminels dans la ville. Avec sa puissance, il coordonne les gangsters et forme une organisation du crime efficace. Il a la capacite de penetrer dans des maisons en utilisant son lockpick. Le chef des gangsters possede la capacite de vous liberer de prison.]],
weapons = {"weapon_fists", "lockpick", "unarrest_stick","weapon_arc_atmcard","pocket"},
command = "chefgangster",
max = 1,
salary = 70,
admin = 0,
vote = false,
hasLicense = false,
})

TEAM_DEALER = DarkRP.createJob("Dealer", {
color = Color(255, 140, 0, 255),
model = "models/player/odessa.mdl",
description = [[Le dealer est un vendeur de drogue, produits illicites ou dopants. Ce terme s'applique aux petits revendeurs de rue et de parc et pour de petites quantites de produits. On rencontre aussi le terme trafiquant]],
weapons = {"weapon_fists","weapon_arc_atmcard","pocket"},
command = "dealer",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
})

TEAM_DIVER = DarkRP.createJob("Quincailler", {
color = Color(255, 140, 0, 255),
model = "models/player/eli.mdl",
description = [[Une quincaillerie est un type de commerce de detail, destine au professionnel ou au particulier, vendant principalement des outils, des fournitures et materiel de bricolage, ou des ustensiles menagers. On appelle quincaillier le responsable de ce commerce.]],
weapons = {"weapon_fists","weapon_arc_atmcard","pocket"},
command = "diver",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
})

TEAM_HACKER = DarkRP.createJob("*VIP* Hacker", {
color = Color(80, 45, 0, 255),
model = {"models/player/aiden_pearce.mdl"},
description = [[En securite informatique, un hacker est un specialiste dans la maîtrise de la securite informatique et donc des moyens de déjouer cette securite. Certains d'entre eux utilisent ce savoir-faire dans un cadre illegal pour pirater des atm.]],
weapons = {"weapon_hack_phone", "weapon_arc_atmhack", "weapon_arc_atmcard","pocket"},
command = "hacker",
max = 3,
salary = 10,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
customCheck = function(ply) return ply:CheckGroup("VIP") or ply:IsAdmin() end,
})

TEAM_BANK = DarkRP.createJob("Banquier", {
color = Color(255, 215, 0, 255),
model = "models/player/hostage/hostage_02.mdl",
description = [[Occupez vous des printers de vos clients.]],
weapons = {"weapon_fists","weapon_arc_atmcard","pocket"},
command = "bank",
max = 2,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})

TEAM_SWAT = DarkRP.createJob("SWAT", {
color = Color(20, 20, 255, 255),
model = {"models/player/swat.mdl"},
description = [[Un SWAT, acronyme de Special Weapons and Tactics, est une unite specialisee existante dans les principales polices, capable de mener des operations a hauts risques avec un armement et des tactiques adaptees.Ses missions peuvent consister en des assauts coordonnes contre des objectifs choisis tels que des criminels lourdement armes dans des lieux retranches..]],
weapons = {"weapon_stungun", "weapon_fists", "arrest_stick", "unarrest_stick", "fas2_deagle", "stunstick", "door_ram", "weaponchecker", "fas2_m4a1", "handcuffs","weapon_arc_atmcard","pocket"},
command = "swat",
max = 2,
salary = 115,
admin = 0,
vote = true,
hasLicense = true,
-- Insert customCheck here if you have one and want one.
})

TEAM_POLICIER = DarkRP.createJob("Policier", {
color = Color(26, 33, 224, 255),
model = {"models/player/kerry-mrssx/policefr_02.mdl"},
description = [[Le policier doit faire respecter l'ordre, mais il ne doit pas abuser de son Tazer ou de ses armes dont il dispose. Vous avez le droit de faire des controles de routine si vous trouvez qu'il y as quelque chose de bizzard.]],
weapons = {"stunstick", "arrest_stick", "unarrest_stick", "weapon_glock2", "weaponchecker", "door_ram", "stunstick"},
command = "/police",
max = 5,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
NeedToChangeFrom = TEAM_POLICE,
PlayerSpawn = function(ply)
ply:SetMaxHealth(103)
ply:SetHealth(103)
ply:SetArmor(100)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Vous avez été rétrograder !")
end,
customCheck = function(ply) return CLIENT or
table.HasValue({TEAM_POLICE}, ply:Team())
end,
CustomCheckFailMsg = "",
})

TEAM_SWATCHIEF = DarkRP.createJob("*VIP* Chef SWAT", {
color = Color(20, 20, 255, 255),
model = {"models/player/urban.mdl"},
description = [[Dirigez votre unité du S.W.A.T]],
weapons = {"pocket","keypad_cracker", "weapon_stungun", "weapon_fists", "arrest_stick", "unarrest_stick", "fas2_deagle", "stunstick", "door_ram", "weaponchecker", "fas2_m4a1", "handcuffs", "fas2_m3s90","weapon_arc_atmcard"},
command = "swatchief",
max = 1,
salary = 125,
admin = 0,
vote = true,
hasLicense = true,
customCheck = function(ply) return ply:CheckGroup("VIP") or ply:IsAdmin() end,
})

TEAM_THIEF = DarkRP.createJob("Voleur", {
color = Color(20, 150, 20, 255),
model = {"models/humans/group02/player/tale_01.mdl", "models/humans/group02/player/tale_03.mdl", "models/humans/group02/player/tale_04.mdl", "models/humans/group02/player/tale_05.mdl", "models/humans/group02/player/tale_06.mdl", "models/humans/group02/player/tale_07.mdl", "models/humans/group02/player/tale_08.mdl", "models/humans/group02/player/tale_09.mdl", "models/humans/group02/player/temale_01.mdl", "models/humans/group02/player/temale_02.mdl", "models/humans/group02/player/temale_07.mdl"},
description = [[Volez tout ce que vous pouvez avec les outils fournis avec votre job.]],
weapons = {"weapon_fists", "keypad_cracker", "lockpick", "pickpocket","weapon_arc_atmcard","pocket"},
command = "thief",
max = 4,
salary = 30,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})

TEAM_PSYCO = DarkRP.createJob("*VIP* Psycopathe", {
color = Color(119 , 136, 153, 255),
model = {"models/humans/group02/player/tale_01.mdl", "models/humans/group02/player/tale_03.mdl", "models/humans/group02/player/tale_04.mdl", "models/humans/group02/player/tale_05.mdl", "models/humans/group02/player/tale_06.mdl", "models/humans/group02/player/tale_07.mdl", "models/humans/group02/player/tale_08.mdl", "models/humans/group02/player/tale_09.mdl", "models/humans/group02/player/temale_01.mdl", "models/humans/group02/player/temale_02.mdl", "models/humans/group02/player/temale_07.mdl"},
description = [[Tuez toutes vos proies dans un endroit discret sans temoin(s). Il ne doit pas y avoir de temoin(s) !]],
weapons = {"weapon_fists", "fas2_machete","weapon_arc_atmcard","pocket"},
command = "psyco",
max = 4,
salary = 20,
admin = 0,
vote = true,
hasLicense = false,
customCheck = function(ply) return ply:CheckGroup("VIP") or ply:IsAdmin() end,
})

TEAM_BRA = DarkRP.createJob("*VIP* Braqueur", {
color = Color(75, 75, 75, 255),
model = {"models/player/pd2_chains_p.mdl", "models/player/pd2_dallas_p.mdl", "models/player/pd2_hoxton_p.mdl", "models/player/pd2_wolf_p.mdl"},
description = [[Un braquage est un vol a main armee dans une banque ou dans un magasin generalement dans le but d'y derober de l'argent ou des objets de valeur. Dans la plupart des juridictions nationales le braquage est un crime..]],
weapons = {"weapon_fists", "lockpick", "keypad_cracker", "fas2_deagle","weapon_arc_atmcard","pocket"},
command = "braqueur",
max = 4,
salary = 50,
admin = 0,
vote = true,
hasLicense = false,
customCheck = function(ply) return ply:CheckGroup("VIP") or ply:IsAdmin() end,
})

TEAM_BODYGUARD = DarkRP.createJob("Garde du Corps", {
color = Color(244, 164, 96, 255),
model = {"models/player/guard_pack/guard_01.mdl", "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 = [[Un Garde du Corps est un individu dont la fonction est de proteger le corps, et donc la vie, d'une personne a laquelle il est attachez.]],
weapons = {"weapon_fists", "stunstick", "weaponchecker","weapon_arc_atmcard","pocket"},
command = "bodyguard",
max = 4,
salary = 55,
admin = 0,
vote = true,
hasLicense = true,
-- Insert customCheck here if you have one and want one.
})

TEAM_SECRETARY = DarkRP.createJob("Secretaire du Maire", {
color = Color(150, 20, 20, 255),
model = {"models/player/mossman.mdl"},
description = [[Vous etes la secretaire du maire, occupez vous de ses rendez-vous.]],
weapons = {"weapon_fists","weapon_arc_atmcard","pocket"},
command = "secretary",
max = 1,
salary = 100,
admin = 0,
vote = true,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})

TEAM_BAC = DarkRP.createJob("*VIP* BAC", {
color = Color(20, 150, 20, 255),
model = {"models/humans/group02/player/tale_01.mdl", "models/humans/group02/player/tale_03.mdl", "models/humans/group02/player/tale_04.mdl", "models/humans/group02/player/tale_05.mdl", "models/humans/group02/player/tale_06.mdl", "models/humans/group02/player/tale_07.mdl", "models/humans/group02/player/tale_08.mdl", "models/humans/group02/player/tale_09.mdl", "models/humans/group02/player/temale_01.mdl", "models/humans/group02/player/temale_02.mdl", "models/humans/group02/player/temale_07.mdl"},
description = [[Faites /job Citoyen pour vous camoufler en citoyen. Votre but est d'infiltre des reseaux ou meme patrouiller dans la rue en civil pour que les gens vous confonde avec des citoyens.]],
weapons = {"weapon_stungun","pocket","weapon_arc_atmcard","weapon_fists", "arrest_stick", "unarrest_stick", "fas2_deagle", "stunstick", "door_ram", "weaponchecker", "handcuffs"},
command = "bac",
max = 4,
salary = 90,
admin = 0,
vote = true,
hasLicense = true,
customCheck = function(ply) return ply:CheckGroup("VIP") or ply:IsAdmin() end,
})

TEAM_BARMANS = DarkRP.createJob("Barman", {
color = Color(218, 165, 32, 255),
model = {"models/player/hostage/hostage_01.mdl"},
description = [[Creez votre bar et vendez de la biere, de l'eau, de l'aspirine et des cigarettes a vos clients.]],
weapons = {"weapon_fists","weapon_arc_atmcard","pocket"},
command = "barmans",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})

TEAM_ADMIN = DarkRP.createJob("Administrateur", {
color = Color(75, 0, 130, 255),
model = {"models/player/anon/anon.mdl"},
description = [[Job pour les admins.]],
weapons = {"weapon_fists","weapon_arc_atmcard","pocket"},
command = "admin",
max = 10,
salary = 20,
admin = 1,
vote = false,
hasLicense = true,
-- Insert customCheck here if you have one and want one.
})

TEAM_BLOODZ = DarkRP.createJob("Bloodz", {
color = Color(220, 20, 60, 255),
model = {
"models/player/bloodz/slow_1.mdl",
"models/player/bloodz/slow_2.mdl",
"models/player/bloodz/slow_3.mdl"
},
description = [[Vos ennemies jures sont les Cripz. Vous etes un gang qui se differencit des autres.]],
weapons = {"weapon_fists","weapon_arc_atmcard","pocket"},
command = "bloodz",
max = 4,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})

TEAM_CRIPZ = DarkRP.createJob("Cripz", {
color = Color(0 ,0, 255, 255),
model = {
"models/player/cripz/slow_1.mdl",
"models/player/cripz/slow_2.mdl",
"models/player/cripz/slow_3.mdl"
},
description = [[Vos ennemies jures sont les Cripz. Vous etes un gang qui se differencit des autres.]],
weapons = {"weapon_fists","weapon_arc_atmcard"},
command = "cripz",
max = 4,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})

TEAM_VIOLE = DarkRP.createJob("*VIP* Violeur", {
color = Color(0, 255, 127, 255),
model = {"models/player/odessa.mdl"},
description = [[Vous etes un violeur, vous vivez dans les endroits clos et vous vivez de vos fantasmes a violer des personnes comme un psycopathe.(Vous ne devez pas vous faire voir entrain de violer !)]],
weapons = {"weapon_fists", "fas2_machete","weapon_arc_atmcard"},
command = "viols",
max = 4,
salary = 20,
admin = 0,
vote = true,
hasLicense = false,
customCheck = function(ply) return ply:CheckGroup("VIP") or ply:IsAdmin() end,
})

TEAM_LIV = DarkRP.createJob("Livreur", {
color = Color(255, 0, 255, 255),
model = {
"models/humans/group02/player/tale_01.mdl",
"models/humans/group02/player/tale_03.mdl",
"models/humans/group02/player/tale_04.mdl",
"models/humans/group02/player/tale_05.mdl",
"models/humans/group02/player/tale_06.mdl",
"models/humans/group02/player/tale_07.mdl",
"models/humans/group02/player/tale_08.mdl",
"models/humans/group02/player/tale_09.mdl",
"models/humans/group02/player/temale_01.mdl",
"models/humans/group02/player/temale_02.mdl",
"models/humans/group02/player/temale_07.mdl"
},
description = [[Votre job est de livrer les personnes en nourriture, armes ou meme equipements illegaux. Travaillez pour cuisinier, vendeur d'armes ou quincailler ou autres.]],
weapons = {"weapon_fists","weapon_arc_atmcard","pocket"},
command = "liv",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})

TEAM_TAXI = DarkRP.createJob("Chauffeur de Taxi", {
color = Color(255, 0, 255, 255),
model = {
"models/humans/group02/player/tale_01.mdl",
"models/humans/group02/player/tale_03.mdl",
"models/humans/group02/player/tale_04.mdl",
"models/humans/group02/player/tale_05.mdl",
"models/humans/group02/player/tale_06.mdl",
"models/humans/group02/player/tale_07.mdl",
"models/humans/group02/player/tale_08.mdl",
"models/humans/group02/player/tale_09.mdl",
"models/humans/group02/player/temale_01.mdl",
"models/humans/group02/player/temale_02.mdl",
"models/humans/group02/player/temale_07.mdl"
},
description = [[Votre job est d'amener les personnes ou elles veulent avec votre taxi.]],
weapons = {"weapon_fists","weapon_arc_atmcard","pocket"},
command = "taxi",
max = 2,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})

TEAM_REPA = DarkRP.createJob("Reparateur de vehicules", {
color = Color(255, 0, 255, 255),
model = {
"models/humans/group02/player/tale_01.mdl",
"models/humans/group02/player/tale_03.mdl",
"models/humans/group02/player/tale_04.mdl",
"models/humans/group02/player/tale_05.mdl",
"models/humans/group02/player/tale_06.mdl",
"models/humans/group02/player/tale_07.mdl",
"models/humans/group02/player/tale_08.mdl",
"models/humans/group02/player/tale_09.mdl",
"models/humans/group02/player/temale_01.mdl",
"models/humans/group02/player/temale_02.mdl",
"models/humans/group02/player/temale_07.mdl"
},
description = [[Reparez les vehicules de personnes pour gagner votre vie, demandez la somme que vous voulez ! Restez appuyer sur clic gauche pour reparer un vehicule.]],
weapons = {"weapon_fists", "vc_repair","weapon_arc_atmcard","pocket"},
command = "repa",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
-- Insert customCheck here if you have one and want one.
})

if not DarkRP.disabledDefaults["modules"]["hungermod"] then
TEAM_COOK = DarkRP.createJob("Employé du Mcdonald", {
color = Color(238, 99, 99, 255),
model = "models/player/mossman.mdl",
description = [[As a cook, it is your responsibility to feed the other members of your city.
You can spawn a microwave and sell the food you make:
/buymicrowave]],
weapons = {"weapon_fists"},
command = "cook",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
cook = true
})
end

--[[---------------------------------------------------------------------------
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)
 
Treadstonepbs

Treadstonepbs

Psychopathe
Messages
657
Score réaction
217
Points
230
DevilModding à dit:
Bonjours, j'ai creer des jobs moi meme avec le site The coding Best. mais quand je lance mon serveur, les jobs de base apparait mais pas les jobs que j'ai creer. il n'y as aucune erreur de codage je m'en suis assurer alors faut-il mettre un truc en false ou true dans un fichier ? merci d'avance
Ou as-tu mis tes jobs ?
 
  • Initiateur de la discussion
  • Banni
DevilModding

DevilModding

Geek
Messages
416
Score réaction
40
Points
80
darkrp customthing
 
  • Initiateur de la discussion
  • Banni
DevilModding

DevilModding

Geek
Messages
416
Score réaction
40
Points
80
SwiiD

SwiiD

Geek suprême
Messages
334
Score réaction
12
Points
115
Tu dit " les jobs de base apparait " ? pour les désactiver tu va dans :
addons-->darkrpmodifications-->lua--->darkrp_config-->disabled_défault

Tu cherche :
["chief"] = true,
["Citoyen"] = false,
["cook"] = true, --Hungermod only
["cp"] = true,
["gangster"] = true,
["gundealer"] = true,
["hobo"] = true,
["mayor"] = true,
["medic"] = true,
["mobboss"] = true,
 
SwiiD

SwiiD

Geek suprême
Messages
334
Score réaction
12
Points
115
et tu trompe regard par exemple :
TEAM_SWATCHIEF = DarkRP.createJob("*VIP* Chef SWAT", {
color = Color(20, 20, 255, 255),
model = {"models/player/urban.mdl"},
description = [[Dirigez votre unité du S.W.A.T]],
weapons = {"pocket","keypad_cracker", "weapon_stungun", "weapon_fists", "arrest_stick", "unarrest_stick", "fas2_deagle", "stunstick", "door_ram", "weaponchecker", "fas2_m4a1", "handcuffs", "fas2_m3s90","weapon_arc_atmcard"},
command = "swatchief",
max = 1,
salary = 125,
admin = 0,
vote = true,
hasLicense = true,
customCheck = function(ply) return ply:CheckGroup("VIP") or ply:IsAdmin() end,
})

f not DarkRP.disabledDefaults["modules"]["hungermod"] then
TEAM_COOK = DarkRP.createJob("Employé du Mcdonald", {
color = Color(238, 99, 99, 255),
model = "models/player/mossman.mdl",
description = [[As a cook, it is your responsibility to feed the other members of your city.
You can spawn a microwave and sell the food you make:
/buymicrowave]],
weapons = {"weapon_fists"},
command = "cook",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
cook = true
})
end


déjà enlève : f not DarkRP.disabledDefaults["modules"]["hungermod"] then
sa doit pas être en haut du job

Ensuite


TEAM_SWAT = DarkRP.createJob("SWAT", {
color = Color(20, 20, 255, 255),
model = {"models/player/swat.mdl"},
description = [[Un SWAT, acronyme de Special Weapons and Tactics, est une unite specialisee existante dans les principales polices, capable de mener des operations a hauts risques avec un armement et des tactiques adaptees.Ses missions peuvent consister en des assauts coordonnes contre des objectifs choisis tels que des criminels lourdement armes dans des lieux retranches..]],
weapons = {"weapon_stungun", "weapon_fists", "arrest_stick", "unarrest_stick", "fas2_deagle", "stunstick", "door_ram", "weaponchecker", "fas2_m4a1", "handcuffs","weapon_arc_atmcard","pocket"},
command = "swat",
max = 2,
salary = 115,
admin = 0,
vote = true,
hasLicense = true,
-- Insert customCheck here if you have one and want one. ??? Pourquoi tu as mis sa??
})



Ensuite
 
  • Initiateur de la discussion
  • Banni
DevilModding

DevilModding

Geek
Messages
416
Score réaction
40
Points
80
SwiiD à dit:
Tu dit " les jobs de base apparait " ? pour les désactiver tu va dans :
addons-->darkrpmodifications-->lua--->darkrp_config-->disabled_défault

Tu cherche :
["chief"] = true,
["Citoyen"] = false,
["cook"] = true, --Hungermod only
["cp"] = true,
["gangster"] = true,
["gundealer"] = true,
["hobo"] = true,
["mayor"] = true,
["medic"] = true,
["mobboss"] = true,
donc si je desactive les job par defaut, mais job a moi vont s'afficher ?
 
SwiiD

SwiiD

Geek suprême
Messages
334
Score réaction
12
Points
115
Essaye sa pour le swat pour voir :
TEAM_AME = DarkRP.createJob("SW", {
color = Color(224, 242, 113, 255),
model = {"models/thresh/thresh.mdl"},
description = [[Vous êtes une Âme,vous devez choisir votre faction
Saiyan , Empire,Namek,Autre ]],
weapons = {},
command = "ame",
max = 0,
salary = 100,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Citizens",
PlayerLoadout = function(ply) ply:SetArmor( 0 ) end,
PlayerLoadout = function(ply) ply:SetArmor( math.Clamp( ( ply:Armor() or 100 ) + 0, 0, 0 ) ) end,
PlayerSpawn = function(ply)
GAMEMODE:SetPlayerSpeed(ply, GAMEMODE.Config.walkspeed * 1.0, GAMEMODE.Config.runspeed * 1.0)
ply:SetHealth(101)
end,
})
DevilModding à dit:
donc si je desactive les job par defaut, mais job a moi vont s'afficher ?
Dans certain job il y a un peu du n'importe quoi fin , après je t'es mis sa pour enlever les jobs de base et je suis entrain regarder tous t'es job la
 
  • Initiateur de la discussion
  • Banni
DevilModding

DevilModding

Geek
Messages
416
Score réaction
40
Points
80
SwiiD à dit:
Essaye sa pour le swat pour voir :
TEAM_AME = DarkRP.createJob("SW", {
color = Color(224, 242, 113, 255),
model = {"models/thresh/thresh.mdl"},
description = [[Vous êtes une Âme,vous devez choisir votre faction
Saiyan , Empire,Namek,Autre ]],
weapons = {},
command = "ame",
max = 0,
salary = 100,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Citizens",
PlayerLoadout = function(ply) ply:SetArmor( 0 ) end,
PlayerLoadout = function(ply) ply:SetArmor( math.Clamp( ( ply:Armor() or 100 ) + 0, 0, 0 ) ) end,
PlayerSpawn = function(ply)
GAMEMODE:SetPlayerSpeed(ply, GAMEMODE.Config.walkspeed * 1.0, GAMEMODE.Config.runspeed * 1.0)
ply:SetHealth(101)
end,
})


Dans certain job il y a un peu du n'importe quoi fin , après je t'es mis sa pour enlever les jobs de base et je suis entrain regarder tous t'es job la
parceque mon pote a exactement mes meme codage et ca marche sur son serveur cest bizzard.
 
Discord d'entraide
Rejoignz-nous sur Discord