- Initiateur de la discussion
mrcodsv
Geek suprême
- Messages
- 214
- Score réaction
- 33
- Points
- 130
Bonjour, J'ai un soucis avec les métiers de policier sur mon serveur et peut être que vous auriez une solution à cela.
J'ai plusieurs métiers de police comme policier, chef de police, intervention spécial et j'en passe,
J'ai un soucis avec les métiers de police car je ne peut pas mettre de mandat ni rien, il y a que 1 ou 2 métiers de police qui fonctionne pour mettre un mandat
Mais le plus bizarre a tous ca c'est que j'ai déjà refait les métiers plusieurs fois et tous marchait très bien et quelques reboots après ça a recommencés pareil pourtant je n'ai rien modifié sur le fichier jobs.lua
et aucune erreur n'est mise dans les logs
J'aimerai savoir si vous s'aviez de quoi cela venais.
Merci
MrCoDSv
TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(0, 40, 255, 255),
model = {"models/humans/nypd1940/male_01.mdl"},
description = [[Vous êtes une personne qui fait respecter l'ordre sous le commandement du chef de la police]],
weapons = {"arrest_stick", "3m9k_m92beretta", "stunstick", "m9k_ithacam37", "weapon_baton", "taserdoor_ram", "speedchecker", "weapon_stungun", "weaponchecker", "weapon_cuff_police"},
command = "policier",
max = 5,
salary = 35,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Gouvernement",
})
TEAM_POLICE = DarkRP.createJob("Agent Secret", {
color = Color(0, 255, 10, 255),
model = {"models/player/bond.mdl"},
description = [[Vous devez vous infiltrez dans des groupes illégaux et récuperer des informations pour la police]],
weapons = {"3m9k_m92beretta", "stunstick", "weapon_baton", "weapon_stungun", "weaponchecker", "weapon_cuff_police", "arrest_stick"},
command = "agentsecret",
max = 1,
salary = 65,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Gouvernement",
customCheck = function(ply) return ply:GetNWString ("usergroup") == "superadmin" or ply:GetNWString ("usergroup") == "vip" or ply:GetNWString ("usergroup") == "admin" end,
CustomCheckFailMag = "Vous n'êtes pas VIP."
})
TEAM_CHIEF = DarkRP.createJob("Chef de la police", {
color = Color(0, 56, 255, 255),
model = {"models/fearless/gsuit18.mdl"},
description = [[Vous devez faire respecter l'odre dans la ville avec la police]],
weapons = {"m9k_hk45", "m9k_remington870", "stunstick", "weapon_baton", "weapon_stungun", "weaponchecker", "weapon_cuff_police", "arrest_stick"},
command = "chefpolice",
max = 1,
salary = 85,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = true,
mayor = false,
hobo = false,
cook = false,
category = "Gouvernement",
customCheck = function(ply) return ply:GetNWString ("usergroup") == "superadmin" or ply:GetNWString ("usergroup") == "vip" or ply:GetNWString ("usergroup") == "admin" end,
CustomCheckFailMag = "Vous n'êtes pas VIP."
})
TEAM_CHIEF = DarkRP.createJob("Chef d'Interfention Special", {
color = Color(0, 56, 255, 255),
model = {"models/fearless/sru02.mdl"},
description = [[Vous êtes le chef d'une petite équipe surentrainée de la police, votre rôle est de donner les ordres et accomplir votre devoir]],
weapons = {"weapon_stungun", "weapon_baton", "arrest_stick", "stunstick", "weaponchecker", "taserdoor_ram", "weapon_cuff_police", "m9k_hk45", "m9k_usc"},
command = "interventionspecial",
max = 1,
salary = 85,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = true,
mayor = false,
hobo = false,
cook = false,
category = "Gouvernement",
customCheck = function(ply) return ply:GetNWString ("usergroup") == "superadmin" or ply:GetNWString ("usergroup") == "vip" or ply:GetNWString ("usergroup") == "admin" end,
CustomCheckFailMag = "Vous n'êtes pas VIP."
})
TEAM_POLICE = DarkRP.createJob("Equipe d'Intervention", {
color = Color(0, 56, 255, 255),
model = {"models/gign remasteredhd.mdl"},
description = [[Vous faites partis d'une équipe d'élite entrainée depuis l'adolescence et qui intervient sur les interventions les plus risquées et les plus dangereuses]],
weapons = {"weapon_stungun", "weapon_baton", "arrest_stick", "stunstick", "weaponchecker", "taserdoor_ram", "weapon_cuff_police", "m9k_mp9", "m9k_sig_p229r"},
command = "intervention",
max = 4,
salary = 65,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = true,
mayor = false,
hobo = false,
cook = false,
category = "Gouvernement",
customCheck = function(ply) return ply:GetNWString ("usergroup") == "superadmin" or ply:GetNWString ("usergroup") == "vip" or ply:GetNWString ("usergroup") == "admin" end,
CustomCheckFailMag = "Vous n'êtes pas VIP."
})
TEAM_POLICE = DarkRP.createJob("Negociateur", {
color = Color(0, 56, 255, 255),
model = {"models/humans/nypd1940/male_01.mdl"},
description = [[Vous êtes un membre de la police qui intervient non armée lors des braquages ou des prises d'otages pour rassurer les victimes et négocier avec le criminel]],
weapons = {},
command = "negociateur",
max = 1,
salary = 35,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = true,
mayor = false,
hobo = false,
cook = false,
category = "Gouvernement",
})
TEAM_POLICE = DarkRP.createJob("Brigade D'Intervention Rapide", {
color = Color(0, 56, 255, 255),
model = {"models/player/leet.mdl"},
description = [[Vous faites partis d'une équipe d'automobilistes spécialiser sur les arrestations à grande vitesse]],
weapons = {"weapon_stungun", "weapon_baton", "arrest_stick", "stunstick", "weaponchecker", "taserdoor_ram", "weapon_cuff_police", "m9k_sig_p229r"},
command = "interventionrapide",
max = 3,
salary = 75,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = true,
mayor = false,
hobo = false,
cook = false,
category = "Gouvernement",
customCheck = function(ply) return ply:GetNWString ("usergroup") == "superadmin" or ply:GetNWString ("usergroup") == "vip" or ply:GetNWString ("usergroup") == "admin" end,
CustomCheckFailMag = "Vous n'êtes pas VIP."
})
TEAM_ADMIN = DarkRP.createJob("STAFF", {
color = Color(176, 182, 204, 255),
model = {"models/fearless/02.mdl"},
description = [[]],
weapons = {"freezegun"},
command = "staff",
max = 5,
salary = 0,
admin = 2,
vote = false,
hasLicense = true,
candemote = false,
-- CustomCheck
medic = true,
chief = true,
mayor = true,
hobo = false,
cook = true,
category = "Gouvernement",
customCheck = function(ply) return ply:GetNWString ("usergroup") == "superadmin" end,
CustomCheckFailMag = "Vous n'êtes pas VIP."
})
TEAM_BANQUE = DarkRP.createJob("Banquier", {
color = Color(255, 214, 0, 255),
model = {"models/11thdoctor/thedoctor.mdl"},
description = [[Vous êtes Banquier, Vous devez vous occupez des Printers et de la banque]],
weapons = {},
command = "banquier",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Légal",
})
TEAM_CHAUFFT = DarkRP.createJob("Chauffeur de Taxi", {
color = Color(255, 122, 0, 255),
model = {"models/player/eli.mdl"},
description = [[Vous êtes Chauffeur de taxi]],
weapons = {},
command = "taxi",
max = 3,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Légal",
})
TEAM_CHAUFFB = DarkRP.createJob("Chauffeur de Bus", {
color = Color(255, 198, 0, 255),
model = {"models/player/Group02/male_06.mdl"},
description = [[Vous êtes Chauffeur de Bus]],
weapons = {},
command = "bus",
max = 2,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Légal",
})
--[[---------------------------------------------------------------------------
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)
J'ai plusieurs métiers de police comme policier, chef de police, intervention spécial et j'en passe,
J'ai un soucis avec les métiers de police car je ne peut pas mettre de mandat ni rien, il y a que 1 ou 2 métiers de police qui fonctionne pour mettre un mandat
Mais le plus bizarre a tous ca c'est que j'ai déjà refait les métiers plusieurs fois et tous marchait très bien et quelques reboots après ça a recommencés pareil pourtant je n'ai rien modifié sur le fichier jobs.lua
et aucune erreur n'est mise dans les logs
J'aimerai savoir si vous s'aviez de quoi cela venais.
Merci
MrCoDSv
TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(0, 40, 255, 255),
model = {"models/humans/nypd1940/male_01.mdl"},
description = [[Vous êtes une personne qui fait respecter l'ordre sous le commandement du chef de la police]],
weapons = {"arrest_stick", "3m9k_m92beretta", "stunstick", "m9k_ithacam37", "weapon_baton", "taserdoor_ram", "speedchecker", "weapon_stungun", "weaponchecker", "weapon_cuff_police"},
command = "policier",
max = 5,
salary = 35,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Gouvernement",
})
TEAM_POLICE = DarkRP.createJob("Agent Secret", {
color = Color(0, 255, 10, 255),
model = {"models/player/bond.mdl"},
description = [[Vous devez vous infiltrez dans des groupes illégaux et récuperer des informations pour la police]],
weapons = {"3m9k_m92beretta", "stunstick", "weapon_baton", "weapon_stungun", "weaponchecker", "weapon_cuff_police", "arrest_stick"},
command = "agentsecret",
max = 1,
salary = 65,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Gouvernement",
customCheck = function(ply) return ply:GetNWString ("usergroup") == "superadmin" or ply:GetNWString ("usergroup") == "vip" or ply:GetNWString ("usergroup") == "admin" end,
CustomCheckFailMag = "Vous n'êtes pas VIP."
})
TEAM_CHIEF = DarkRP.createJob("Chef de la police", {
color = Color(0, 56, 255, 255),
model = {"models/fearless/gsuit18.mdl"},
description = [[Vous devez faire respecter l'odre dans la ville avec la police]],
weapons = {"m9k_hk45", "m9k_remington870", "stunstick", "weapon_baton", "weapon_stungun", "weaponchecker", "weapon_cuff_police", "arrest_stick"},
command = "chefpolice",
max = 1,
salary = 85,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = true,
mayor = false,
hobo = false,
cook = false,
category = "Gouvernement",
customCheck = function(ply) return ply:GetNWString ("usergroup") == "superadmin" or ply:GetNWString ("usergroup") == "vip" or ply:GetNWString ("usergroup") == "admin" end,
CustomCheckFailMag = "Vous n'êtes pas VIP."
})
TEAM_CHIEF = DarkRP.createJob("Chef d'Interfention Special", {
color = Color(0, 56, 255, 255),
model = {"models/fearless/sru02.mdl"},
description = [[Vous êtes le chef d'une petite équipe surentrainée de la police, votre rôle est de donner les ordres et accomplir votre devoir]],
weapons = {"weapon_stungun", "weapon_baton", "arrest_stick", "stunstick", "weaponchecker", "taserdoor_ram", "weapon_cuff_police", "m9k_hk45", "m9k_usc"},
command = "interventionspecial",
max = 1,
salary = 85,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = true,
mayor = false,
hobo = false,
cook = false,
category = "Gouvernement",
customCheck = function(ply) return ply:GetNWString ("usergroup") == "superadmin" or ply:GetNWString ("usergroup") == "vip" or ply:GetNWString ("usergroup") == "admin" end,
CustomCheckFailMag = "Vous n'êtes pas VIP."
})
TEAM_POLICE = DarkRP.createJob("Equipe d'Intervention", {
color = Color(0, 56, 255, 255),
model = {"models/gign remasteredhd.mdl"},
description = [[Vous faites partis d'une équipe d'élite entrainée depuis l'adolescence et qui intervient sur les interventions les plus risquées et les plus dangereuses]],
weapons = {"weapon_stungun", "weapon_baton", "arrest_stick", "stunstick", "weaponchecker", "taserdoor_ram", "weapon_cuff_police", "m9k_mp9", "m9k_sig_p229r"},
command = "intervention",
max = 4,
salary = 65,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = true,
mayor = false,
hobo = false,
cook = false,
category = "Gouvernement",
customCheck = function(ply) return ply:GetNWString ("usergroup") == "superadmin" or ply:GetNWString ("usergroup") == "vip" or ply:GetNWString ("usergroup") == "admin" end,
CustomCheckFailMag = "Vous n'êtes pas VIP."
})
TEAM_POLICE = DarkRP.createJob("Negociateur", {
color = Color(0, 56, 255, 255),
model = {"models/humans/nypd1940/male_01.mdl"},
description = [[Vous êtes un membre de la police qui intervient non armée lors des braquages ou des prises d'otages pour rassurer les victimes et négocier avec le criminel]],
weapons = {},
command = "negociateur",
max = 1,
salary = 35,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = true,
mayor = false,
hobo = false,
cook = false,
category = "Gouvernement",
})
TEAM_POLICE = DarkRP.createJob("Brigade D'Intervention Rapide", {
color = Color(0, 56, 255, 255),
model = {"models/player/leet.mdl"},
description = [[Vous faites partis d'une équipe d'automobilistes spécialiser sur les arrestations à grande vitesse]],
weapons = {"weapon_stungun", "weapon_baton", "arrest_stick", "stunstick", "weaponchecker", "taserdoor_ram", "weapon_cuff_police", "m9k_sig_p229r"},
command = "interventionrapide",
max = 3,
salary = 75,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = true,
mayor = false,
hobo = false,
cook = false,
category = "Gouvernement",
customCheck = function(ply) return ply:GetNWString ("usergroup") == "superadmin" or ply:GetNWString ("usergroup") == "vip" or ply:GetNWString ("usergroup") == "admin" end,
CustomCheckFailMag = "Vous n'êtes pas VIP."
})
TEAM_ADMIN = DarkRP.createJob("STAFF", {
color = Color(176, 182, 204, 255),
model = {"models/fearless/02.mdl"},
description = [[]],
weapons = {"freezegun"},
command = "staff",
max = 5,
salary = 0,
admin = 2,
vote = false,
hasLicense = true,
candemote = false,
-- CustomCheck
medic = true,
chief = true,
mayor = true,
hobo = false,
cook = true,
category = "Gouvernement",
customCheck = function(ply) return ply:GetNWString ("usergroup") == "superadmin" end,
CustomCheckFailMag = "Vous n'êtes pas VIP."
})
TEAM_BANQUE = DarkRP.createJob("Banquier", {
color = Color(255, 214, 0, 255),
model = {"models/11thdoctor/thedoctor.mdl"},
description = [[Vous êtes Banquier, Vous devez vous occupez des Printers et de la banque]],
weapons = {},
command = "banquier",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Légal",
})
TEAM_CHAUFFT = DarkRP.createJob("Chauffeur de Taxi", {
color = Color(255, 122, 0, 255),
model = {"models/player/eli.mdl"},
description = [[Vous êtes Chauffeur de taxi]],
weapons = {},
command = "taxi",
max = 3,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Légal",
})
TEAM_CHAUFFB = DarkRP.createJob("Chauffeur de Bus", {
color = Color(255, 198, 0, 255),
model = {"models/player/Group02/male_06.mdl"},
description = [[Vous êtes Chauffeur de Bus]],
weapons = {},
command = "bus",
max = 2,
salary = 25,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Légal",
})
--[[---------------------------------------------------------------------------
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)