- Initiateur de la discussion
S
SKCLogan
Têtard
- Messages
- 8
- Score réaction
- 0
- Points
- 5
Bonjour,
Après de multiples recherches et plusieurs essais je n'ai toujours pas trouver de solutions je n'arrive pas a mettre les commandes de warrants et autres pour mes jobs de Commissaire, Lieutenant, Raid et Chef raid alors que le métier de policier a accès à ces commandes merci pour votre aide car franchement je tourne totalement en rond. Voici mon jobs.lua (du moins juste les métiers que cela concerne).
--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.
Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.
The default jobs can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(0, 255, 255, 255),
model = {"models/player/kerry-mrssx/policefr_02.mdl", "models/player/kerry-mrssx/policefr_04.mdl", "models/player/kerry-mrssx/policefr_05.mdl", "models/player/kerry-mrssx/policefr_07.mdl", "models/player/kerry-mrssx/policefr_08.mdl"},
description = [[Vous êtes chargé de la sécurité de la ville et de la protection de ses habitants.]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker","idcard", "weapon_fists", "cw_p99", "cw_mp5", "vc_spikestrip_wep", "weapon_stungun", "handcuffs","keypad_cracker"},
command = "policer",
max = 6,
salary = 1600,
admin = 0,
vote = false,
hasLicense = true,
category = "Gouvernement",
})
TEAM_COMMISSAIRE = DarkRP.createJob("Commissaire ", {
color = Color(0, 255, 255, 255),
model = {"models/portal2/patrol_02.mdl"},
description = [[Vous êtes chargé de la sécurité de la ville et de la protection de ses habitants. Vous dirigez les services de police.Vous pouvez délivrer des licences d'armes.]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "idcard", "weapon_fists", "cw_p99", "cw_mp5", "vc_spikestrip_wep", "weapon_stungun", "handcuffs","keypad_cracker"},
command = "commissaire",
max = 2,
salary = 2000,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "Gouvernement",
PlayerLoadout = function(ply) ply:SetArmor(100) end,
})
TEAM_LIEUTENANT = DarkRP.createJob("Lieutenant", {
color = Color(0, 255, 255, 255),
model = {"models/portal2/patrol_08.mdl"},
description = [[Vous êtes chargé de la sécurité de la ville et de la protection de ses habitants. Vous obéissez aux ordres du commissaire et dirigez les policiers.Vous pouvez délivrer des licences d'armes.]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "idcard", "weapon_fists", "cw_p99", "cw_mp5", "vc_spikestrip_wep", "weapon_stungun", "handcuffs","keypad_cracker"},
command = "lieutenant",
max = 1,
salary = 1800,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "Gouvernement",
PlayerLoadout = function(ply) ply:SetArmor(100) end,
})
TEAM_RAID = DarkRP.createJob("Raid", {
color = Color(0, 255, 255, 255),
model = {"models/auditor/r6s/rook/chr_gign_lifeline_balaclava.mdl"},
description = [[Vous êtes chargé de la sécurité de la ville et de la protection de ses habitants. Vous obéissez aux ordres du chef du raid. Vous pouvez délivrer des licences d'armes.]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "idcard", "weapon_fists", "cw_p99", "cw_mp5", "vc_spikestrip_wep", "weapon_stungun", "handcuffs", "cw_ar15","realistic_hook","keypad_cracker"},
command = "raid",
max = 6,
salary = 2000,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Gouvernement",
PlayerLoadout = function(ply) ply:SetArmor(150) end,
})
TEAM_CRAID = DarkRP.createJob(" Chef Raid ", {
color = Color(0, 255, 255, 255),
model = {"models/player/r6s_doc.mdl"},
description = [[Vous êtes chargé de la sécurité de la ville et de la protection de ses habitants. Vous obéissez aux ordres du commissaire et dirigez les policiers.Vous pouvez délivrer des licences d'armes.]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "idcard", "weapon_fists", "cw_p99", "cw_mp5", "vc_spikestrip_wep", "weapon_stungun", "handcuffs", "cw_ar15","realistic_hook","keypad_cracker"},
command = "craid",
max = 1,
salary = 2300,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "Gouvernement",
PlayerLoadout = function(ply) ply:SetArmor(200) end,
})
-- Agendas
DarkRP.createAgenda("Agenda Mafieux", {TEAM_PARRAIN}, {TEAM_MAFIA})
DarkRP.createAgenda("Agenda Yakuza", {TEAM_CHEFYAKUZA}, {TEAM_YAKUZA})
DarkRP.createAgenda("Police agenda", {TEAM_MAIRE, TEAM_LIEUTENANT, TEAM_COMMISSAIRE}, {TEAM_POLICE, TEAM_RAID, TEAM_CRAID})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITOYEN
--[[---------------------------------------------------------------------------
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_MAIRE] = true,
[TEAM_COMMISSAIRE] = true,
[TEAM_LIEUTENANT] = true,
[TEAM_RAID] = true,
[TEAM_CRAID] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_HITMAN)
Après de multiples recherches et plusieurs essais je n'ai toujours pas trouver de solutions je n'arrive pas a mettre les commandes de warrants et autres pour mes jobs de Commissaire, Lieutenant, Raid et Chef raid alors que le métier de policier a accès à ces commandes merci pour votre aide car franchement je tourne totalement en rond. Voici mon jobs.lua (du moins juste les métiers que cela concerne).
--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.
Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.
The default jobs can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(0, 255, 255, 255),
model = {"models/player/kerry-mrssx/policefr_02.mdl", "models/player/kerry-mrssx/policefr_04.mdl", "models/player/kerry-mrssx/policefr_05.mdl", "models/player/kerry-mrssx/policefr_07.mdl", "models/player/kerry-mrssx/policefr_08.mdl"},
description = [[Vous êtes chargé de la sécurité de la ville et de la protection de ses habitants.]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker","idcard", "weapon_fists", "cw_p99", "cw_mp5", "vc_spikestrip_wep", "weapon_stungun", "handcuffs","keypad_cracker"},
command = "policer",
max = 6,
salary = 1600,
admin = 0,
vote = false,
hasLicense = true,
category = "Gouvernement",
})
TEAM_COMMISSAIRE = DarkRP.createJob("Commissaire ", {
color = Color(0, 255, 255, 255),
model = {"models/portal2/patrol_02.mdl"},
description = [[Vous êtes chargé de la sécurité de la ville et de la protection de ses habitants. Vous dirigez les services de police.Vous pouvez délivrer des licences d'armes.]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "idcard", "weapon_fists", "cw_p99", "cw_mp5", "vc_spikestrip_wep", "weapon_stungun", "handcuffs","keypad_cracker"},
command = "commissaire",
max = 2,
salary = 2000,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "Gouvernement",
PlayerLoadout = function(ply) ply:SetArmor(100) end,
})
TEAM_LIEUTENANT = DarkRP.createJob("Lieutenant", {
color = Color(0, 255, 255, 255),
model = {"models/portal2/patrol_08.mdl"},
description = [[Vous êtes chargé de la sécurité de la ville et de la protection de ses habitants. Vous obéissez aux ordres du commissaire et dirigez les policiers.Vous pouvez délivrer des licences d'armes.]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "idcard", "weapon_fists", "cw_p99", "cw_mp5", "vc_spikestrip_wep", "weapon_stungun", "handcuffs","keypad_cracker"},
command = "lieutenant",
max = 1,
salary = 1800,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "Gouvernement",
PlayerLoadout = function(ply) ply:SetArmor(100) end,
})
TEAM_RAID = DarkRP.createJob("Raid", {
color = Color(0, 255, 255, 255),
model = {"models/auditor/r6s/rook/chr_gign_lifeline_balaclava.mdl"},
description = [[Vous êtes chargé de la sécurité de la ville et de la protection de ses habitants. Vous obéissez aux ordres du chef du raid. Vous pouvez délivrer des licences d'armes.]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "idcard", "weapon_fists", "cw_p99", "cw_mp5", "vc_spikestrip_wep", "weapon_stungun", "handcuffs", "cw_ar15","realistic_hook","keypad_cracker"},
command = "raid",
max = 6,
salary = 2000,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Gouvernement",
PlayerLoadout = function(ply) ply:SetArmor(150) end,
})
TEAM_CRAID = DarkRP.createJob(" Chef Raid ", {
color = Color(0, 255, 255, 255),
model = {"models/player/r6s_doc.mdl"},
description = [[Vous êtes chargé de la sécurité de la ville et de la protection de ses habitants. Vous obéissez aux ordres du commissaire et dirigez les policiers.Vous pouvez délivrer des licences d'armes.]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "idcard", "weapon_fists", "cw_p99", "cw_mp5", "vc_spikestrip_wep", "weapon_stungun", "handcuffs", "cw_ar15","realistic_hook","keypad_cracker"},
command = "craid",
max = 1,
salary = 2300,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "Gouvernement",
PlayerLoadout = function(ply) ply:SetArmor(200) end,
})
-- Agendas
DarkRP.createAgenda("Agenda Mafieux", {TEAM_PARRAIN}, {TEAM_MAFIA})
DarkRP.createAgenda("Agenda Yakuza", {TEAM_CHEFYAKUZA}, {TEAM_YAKUZA})
DarkRP.createAgenda("Police agenda", {TEAM_MAIRE, TEAM_LIEUTENANT, TEAM_COMMISSAIRE}, {TEAM_POLICE, TEAM_RAID, TEAM_CRAID})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITOYEN
--[[---------------------------------------------------------------------------
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_MAIRE] = true,
[TEAM_COMMISSAIRE] = true,
[TEAM_LIEUTENANT] = true,
[TEAM_RAID] = true,
[TEAM_CRAID] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_HITMAN)