Bug de metier

  • Initiateur de la discussion NirokTwitch
  • Date de début
  • Initiateur de la discussion
NirokTwitch

NirokTwitch

Nouveau né
Messages
21
Score réaction
0
Points
20
Bonjour depuis pas longtemps je me suis retrouver avec ce bug en gros pour faire simple je me met dans un métier (n'importe le quel ) et quand je ouvre le F4 tous les métiers on totalement disparu
 

Pièces jointes

  • bug metier.webm
    17.5 MB Vues: 16
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
356
Points
315
Montre le categories.lua et le jobs.lua
 
  • Initiateur de la discussion
NirokTwitch

NirokTwitch

Nouveau né
Messages
21
Score réaction
0
Points
20
DarkRP.createCategory{
name = "meth",
categorises = "jobs",
startExpanded = true,
color = Color(34, 85, 85, 255),
sortOrder = 5,
}

DarkRP.createCategory{
name = "FUSILS D'ASSAUT",
categorises = "shipments",
startExpanded = true,
color = Color(34, 85, 85, 255),
sortOrder = 5,
}

DarkRP.createCategory{
name = "FUSILS A POMPE",
categorises = "shipments",
startExpanded = true,
color = Color(34, 85, 85, 255),
sortOrder = 5,
}

DarkRP.createCategory{
name = "SNIPERS",
categorises = "shipments",
startExpanded = true,
color = Color(34, 85, 85, 255),
sortOrder = 5,
}

DarkRP.createCategory{
name = "PISTOLETS",
categorises = "shipments",
startExpanded = true,
color = Color(34, 85, 85, 255),
sortOrder = 5,
}












TEAM_CITIZEN = DarkRP.createJob("CITOYEN", {
color = Color(20, 150, 20, 255),
model = {
"models/player/Group01/Female_01.mdl",
"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 = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
weapons = {"itemstore_pickup"},
command = "citizen",
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
NeedToChangeFrom = TEAM_CITIZEN,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
})

TEAM_POLICE = DarkRP.createJob("POLICIER", {
color = Color(25, 25, 170, 255),
model = {
"models/brinks/security/guard_brinks_1.mdl",
"models/brinks/security/guard_brinks_2.mdl",
"models/brinks/security/guard_brinks_3.mdl",
"models/brinks/security/guard_brinks_4.mdl",
"models/brinks/security/guard_brinks_5.mdl",
"models/brinks/security/guard_brinks_6.mdl",
"models/brinks/security/guard_brinks_7.mdl",
"models/brinks/security/guard_brinks_8.mdl",
"models/brinks/security/guard_brinks_9.mdl"},
description = [[The protector of every citizen that lives in the city.
You have the power to arrest criminals and protect innocents.
Hit a player with your arrest baton to put them in jail.
Bash a player with a stunstick and they may learn to obey the law.
The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
The Battering Ram can also unfreeze frozen props (if enabled).
Type /wanted <name> to alert the public to the presence of a criminal.]],
weapons = {"itemstore_pickup", "tfa_fas2_p226", "weapon_r_handcuffs", "salute", "riot_shield", "wep_jack_job_drpradio"},
command = "cp",
max = 4,
salary = GAMEMODE.Config.normalsalary * 1.45,
admin = 0,
vote = false,
hasLicense = true,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
NeedToChangeFrom = TEAM_CITIZEN,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
level = 5
})

TEAM_GANG = DarkRP.createJob("GANGSTER", {
color = Color(75, 75, 75, 255),
model = {
"models/csgoleet1pm.mdl",
"models/csgoleet2pm.mdl",
"models/csgoleet3pm.mdl",
"models/csgoleet4pm.mdl"},
description = [[The lowest person of crime.
A gangster generally works for the Mobboss who runs the crime family.
The Mob boss sets your agenda and you follow it or you might be punished.]],
weapons = {"itemstore_pickup", "lockpick", "tfa_ins2_glock_p80", "wep_jack_job_drpradio"},
command = "gangster",
max = 3,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
NeedToChangeFrom = TEAM_CITIZEN,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
})


TEAM_GUN = DarkRP.createJob("ARMURIER", {
color = Color(255, 140, 0, 255),
model = "models/player/arnold_schwarzenegger.mdl",
description = [[A Gun Dealer is the only person who can sell guns to other people.
Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
weapons = {"itemstore_pickup"},
command = "gundealer",
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
NeedToChangeFrom = TEAM_CITIZEN,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
})

TEAM_MEDIC = DarkRP.createJob("MEDECIN", {
color = Color(47, 79, 79, 255),
model = {
"models/player/portal/male_02_medic.mdl",
"models/player/portal/male_04_medic.mdl",
"models/player/portal/male_05_medic.mdl",
"models/player/portal/male_06_medic.mdl",
"models/player/portal/male_07_medic.mdl",
"models/player/portal/male_08_medic.mdl",
"models/player/portal/male_09_medic.mdl"},
description = [[With your medical knowledge you work to restore players to full health.
Without a medic, people cannot be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.]],
weapons = {"fas2_ifak", "itemstore_pickup"},
command = "medic",
max = 3,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
medic = true,
category = "Citizens",
NeedToChangeFrom = TEAM_CITIZEN,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
})

TEAM_CHIEF = DarkRP.createJob("COMMISSAIRE", {
color = Color(20, 20, 255, 255),
model = {
"models/portal2/patrol_02.mdl",
"models/portal2/patrol_04.mdl",
"models/portal2/patrol_05.mdl",
"models/portal2/patrol_06.mdl",
"models/portal2/patrol_07.mdl",
"models/portal2/patrol_08.mdl",
"models/portal2/patrol_09.mdl"},
description = [[The Chief is the leader of the Civil Protection unit.
Coordinate the police force to enforce law in the city.
Hit a player with arrest baton to put them in jail.
Bash a player with a stunstick and they may learn to obey the law.
The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
Type /wanted <name> to alert the public to the presence of a criminal.
Type /jailpos to set the Jail Position]],
weapons = {"arrest_stick", "fas2_m3s90", "door_ram", "weaponchecker", "weapon_r_handcuffs", "salute", "deployable_shield", "wep_jack_job_drpradio"},
command = "chief",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.67,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
NeedToChangeFrom = TEAM_CITIZEN,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
level = 8
})

TEAM_RAID = DarkRP.createJob("RAID", {
color = Color(20, 20, 255, 255),
model = {
"models/player/raid/raid_07.mdl",
"models/player/raid/raid_06.mdl",
"models/player/raid/raid_05.mdl",
"models/player/raid/raid_04.mdl",
"models/player/raid/raid_03.mdl",
"models/player/raid/raid_02.mdl"},
description = [[The Chief is the leader of the Civil Protection unit.
Coordinate the police force to enforce law in the city.
Hit a player with arrest baton to put them in jail.
Bash a player with a stunstick and they may learn to obey the law.
The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
Type /wanted <name> to alert the public to the presence of a criminal.
Type /jailpos to set the Jail Position]],
weapons = {"door_ram", "tfa_cele_ru556", "itemstore_pickup", "salute", "deployable_shield", "wep_jack_job_drpradio"},
command = "gign",
max = 3,
salary = GAMEMODE.Config.normalsalary * 1.67,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
NeedToChangeFrom = TEAM_CITIZEN,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
level = 15
})

TEAM_CHEFRAIDVIP = DarkRP.createJob("CHEF RAID VIP", {
color = Color(0, 0, 0, 255),
model = {"models/player/raid/raid_01.mdl"},
description = [[TEst]],
weapons = {"door_ram", "itemstore_pickup", "tfa_cele_ru556", "salute", "deployable_shield", "wep_jack_job_drpradio"},
command = "chefgign",
max = 1,
salary = 75,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Civil Protection",
NeedToChangeFrom = TEAM_CITIZEN,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
customCheck = function(ply) return CLIENT or
table.HasValue({"VIP", "FONDATEUR", "SUPERADMIN"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "CE JOB EST RÉSERVER AUX VIP",
})

TEAM_MAYOR = DarkRP.createJob("MAIRE", {
color = Color(150, 20, 20, 255),
model = "models/player/donald_trump.mdl",
description = [[The Mayor of the city creates laws to govern the city.
If you are the mayor you may create and accept warrants.
Type /wanted <name> to warrant a player.
Type /jailpos to set the Jail Position.
Type /lockdown initiate a lockdown of the city.
Everyone must be inside during a lockdown.
The cops patrol the area.
/unlockdown to end a lockdown]],
weapons = {"itemstore_pickup", "tfa_mmod_357", "wep_jack_job_drpradio"},
command = "mayor",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
category = "Civil Protection",
NeedToChangeFrom = TEAM_CITIZEN,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
})

TEAM_HOBO = DarkRP.createJob("SDF", {
color = Color(80, 45, 0, 255),
model = "models/player/aiden_pearce.mdl",
description = [[The lowest member of society. Everybody laughs at you.
You have no home.
Beg for your food and money
Sing for everyone who passes to get money
Make your own wooden home somewhere in a corner or outside someone else's door]],
weapons = {"weapon_bugbait", "itemstore_pickup"},
command = "hobo",
max = 5,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
hobo = true,
category = "Citizens",
NeedToChangeFrom = TEAM_CITIZEN,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
})
TEAM_PSYCOPATHE = DarkRP.createJob("PSYCOPATHE", {
color = Color(80, 45, 0, 255),
model = "models/player/bobert/aoblackmask.mdl",
description = [[The lowest member of society. Everybody laughs at you.
You have no home.
Beg for your food and money
Sing for everyone who passes to get money
Make your own wooden home somewhere in a corner or outside someone else's door]],
weapons = {"itemstore_pickup", "tfa_l4d2_talaxe", "fas2_machete"},
command = "psycho",
max = 2,
salary = 30,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
hobo = true,
category = "Citizens",
NeedToChangeFrom = TEAM_CITIZEN,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
level = 3
})

TEAM_STAFF = DarkRP.createJob("STAFF", {
color = Color(80, 45, 0, 255),
model = "models/player/anon/anon.mdl",
description = [[The lowest member of society. Everybody laughs at you.
You have no home.
Beg for your food and money
Sing for everyone who passes to get money
Make your own wooden home somewhere in a corner or outside someone else's door]],
weapons = {"itemstore_pickup"},
command = "staff",
max = 0,
salary = 0,
admin = 1,
vote = false,
hasLicense = false,
candemote = false,
hobo = false,
category = "Citizens",
NeedToChangeFrom = TEAM_CITIZEN,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
})

TEAM_POMPIERS = DarkRP.createJob("SAPEUR POMPIER", {
color = Color(80, 45, 0, 255),
model = {"models/player/portal/male_02_fireman.mdl",
"models/player/portal/male_03_fireman.mdl",
"models/player/portal/male_04_fireman.mdl",
"models/player/portal/male_05_fireman.mdl",
"models/player/portal/male_06_fireman.mdl",
"models/player/portal/male_07_fireman.mdl",
"models/player/portal/male_08_fireman.mdl",
"models/player/portal/male_09_fireman.mdl"},

description = [[The lowest member of society. Everybody laughs at you.
You have no home.
Beg for your food and money
Sing for everyone who passes to get money
Make your own wooden home somewhere in a corner or outside someone else's door]],
weapons = {"itemstore_pickup","wep_jack_job_drpradio"},
command = "sp",
max = 5,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
hobo = false,
category = "Civil Protection",
NeedToChangeFrom = TEAM_CITIZEN,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
level = 6
})

if not DarkRP.disabledDefaults["modules"]["hungermod"] then
TEAM_COOK = DarkRP.createJob("CUISINIER", {
color = Color(238, 99, 99, 255),
model = {"models/fearless/chef1.mdl", "models/fearless/chef2.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 = {"itemstore_pickup"},
command = "cook",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
cook = true,
NeedToChangeFrom = TEAM_CITIZEN,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "")
end,
})
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)
 
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
356
Points
315
NeedToChangeFrom = TEAM_CITIZEN, voilà c'est bien ce que je pensais. Donc retire cet ligne dans tous tes jobs et comme par magie ils sont visibles dans n'importe quel job
 
  • Initiateur de la discussion
NirokTwitch

NirokTwitch

Nouveau né
Messages
21
Score réaction
0
Points
20
Numerix à dit:
NeedToChangeFrom = TEAM_CITIZEN, voilà c'est bien ce que je pensais. Donc retire cet ligne dans tous tes jobs et comme par magie ils sont visibles dans n'importe quel job
Merci Beaucoup sa remarche
 
Discord d'entraide
Rejoignz-nous sur Discord