Problème avec mes customs jobs

  • 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)
 
Daykew

Daykew

Geek suprême
Messages
503
Score réaction
32
Points
140
SKCLogan à dit:
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)
Ajoute cette commande : chief = true,
 
  • Initiateur de la discussion
S

SKCLogan

Têtard
Messages
8
Score réaction
0
Points
5
Je viens de rajouter cette commande mais cela ne fonctionne toujours pas.
 
Daykew

Daykew

Geek suprême
Messages
503
Score réaction
32
Points
140
SKCLogan à dit:
Je viens de rajouter cette commande mais cela ne fonctionne toujours pas.
D'accord, as-tu désactivé le CHIEF de base dans le disabled_defaults ?
 
  • Initiateur de la discussion
S

SKCLogan

Têtard
Messages
8
Score réaction
0
Points
5
oui je te mets le fichiers si jamais j'aurais fait une erreur

--[[---------------------------------------------------------------------------
DarkRP disabled defaults
---------------------------------------------------------------------------

DarkRP comes with a bunch of default things:
- a load of modules
- default jobs
- shipments and guns
- entities (like the money printer)
and many more

If you want to disable or replace the default things, you should disable them here

Note: if you want to have e.g. edit the official medic job, you MUST disable the default one in this file!
You can copy the medic from DarkRP and paste it in darkrp_config/jobs.lua
---------------------------------------------------------------------------]]


--[[---------------------------------------------------------------------------
The list of modules that are disabled. Set to true to disable, false to enable.
Modules that are not in this list are enabled by default.
In some cases some external addons may overwrite one of the modules below and will expect them to be enabled to work.
In these few cases it will be pretty obvious when you expect something to happen and nothing does.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["modules"] = {
["afk"] = true,
["chatsounds"] = false,
["events"] = false,
["fpp"] = false,
["f1menu"] = false,
["f4menu"] = false,
["hitmenu"] = false,
["hud"] = false,
["hungermod"] = false,
["playerscale"] = false,
["sleep"] = false,
["fadmin"] = false,
}



--[[---------------------------------------------------------------------------
The disabled default jobs. true to disable, false to enable.

NOTE: If you disable a job and remake it, expect things that rely on the job to stop working
e.g. you disable the gundealer and you make a new job as TEAM_GUN. If you want the shipments/door groups/etc. to
work for your custom job, remake them to include your job as well.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["jobs"] = {
["chief"] = true,
["citizen"] = true,
["cook"] = true, --Hungermod only
["cp"] = true,
["gangster"] = true,
["gundealer"] = true,
["hobo"] = true,
["mayor"] = true,
["medic"] = true,
["mobboss"] = true,
}

--[[---------------------------------------------------------------------------
Shipments and pistols
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["shipments"] = {
["AK47"] = true,
["Desert eagle"] = true,
["Fiveseven"] = true,
["Glock"] = true,
["M4"] = true,
["Mac 10"] = true,
["MP5"] = true,
["P228"] = true,
["Pump shotgun"] = true,
["Sniper rifle"] = true,
}

--[[---------------------------------------------------------------------------
Entities
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["entities"] = {
["Drug lab"] = true,
["Gun lab"] = true,
["Money printer"] = true,
["Microwave"] = true, --Hungermod only
["Tip Jar"] = true,
}

--[[---------------------------------------------------------------------------
Vehicles
(at the moment there are no default vehicles)
You could use this to disable vehicles you added in the vehicles.lua located in the darkrp_customthings folder.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["vehicles"] = {

}

--[[---------------------------------------------------------------------------
Food
Food is only enabled when hungermod is enabled (see disabled modules above).
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["food"] = {
["Banana"] = true,
["Bunch of bananas"] = true,
["Melon"] = true,
["Glass bottle"] = true,
["Pop can"] = true,
["Plastic bottle"] = true,
["Milk"] = true,
["Bottle 1"] = true,
["Bottle 2"] = true,
["Bottle 3"] = true,
["Orange"] = true,
}

--[[---------------------------------------------------------------------------
Door groups
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["doorgroups"] = {
["Cops and Mayor only"] = true,
["Gundealer only"] = true,
}


--[[---------------------------------------------------------------------------
Ammo packets
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["ammo"] = {
["Pistol ammo"] = true,
["Rifle ammo"] = true,
["Shotgun ammo"] = true,
}

--[[---------------------------------------------------------------------------
Agendas
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["agendas"] = {
["Gangster's agenda"] = false,
["Police agenda"] = false,
}

--[[---------------------------------------------------------------------------
Chat groups (chat with /g)
Chat groups do not have names, so their index is used instead.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["groupchat"] = {
[1] = false, -- Police group chat (mayor, cp, chief and/or your custom CP teams)
[2] = false, -- Group chat between gangsters and the mobboss
[3] = false, -- Group chat between people of the same team
}

--[[---------------------------------------------------------------------------
Jobs that are hitmen
set to true to disable
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["hitmen"] = {
["mobboss"] = false,
}

--[[---------------------------------------------------------------------------
Demote groups
When anyone is demote from any job in this group, they will be temporarily banned
from every job in the group
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["demotegroups"] = {
["Cops"] = false,
["Gangsters"] = false,
}
 
Daykew

Daykew

Geek suprême
Messages
503
Score réaction
32
Points
140
SKCLogan à dit:
oui je te mets le fichiers si jamais j'aurais fait une erreur

--[[---------------------------------------------------------------------------
DarkRP disabled defaults
---------------------------------------------------------------------------

DarkRP comes with a bunch of default things:
- a load of modules
- default jobs
- shipments and guns
- entities (like the money printer)
and many more

If you want to disable or replace the default things, you should disable them here

Note: if you want to have e.g. edit the official medic job, you MUST disable the default one in this file!
You can copy the medic from DarkRP and paste it in darkrp_config/jobs.lua
---------------------------------------------------------------------------]]


--[[---------------------------------------------------------------------------
The list of modules that are disabled. Set to true to disable, false to enable.
Modules that are not in this list are enabled by default.
In some cases some external addons may overwrite one of the modules below and will expect them to be enabled to work.
In these few cases it will be pretty obvious when you expect something to happen and nothing does.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["modules"] = {
["afk"] = true,
["chatsounds"] = false,
["events"] = false,
["fpp"] = false,
["f1menu"] = false,
["f4menu"] = false,
["hitmenu"] = false,
["hud"] = false,
["hungermod"] = false,
["playerscale"] = false,
["sleep"] = false,
["fadmin"] = false,
}



--[[---------------------------------------------------------------------------
The disabled default jobs. true to disable, false to enable.

NOTE: If you disable a job and remake it, expect things that rely on the job to stop working
e.g. you disable the gundealer and you make a new job as TEAM_GUN. If you want the shipments/door groups/etc. to
work for your custom job, remake them to include your job as well.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["jobs"] = {
["chief"] = true,
["citizen"] = true,
["cook"] = true, --Hungermod only
["cp"] = true,
["gangster"] = true,
["gundealer"] = true,
["hobo"] = true,
["mayor"] = true,
["medic"] = true,
["mobboss"] = true,
}

--[[---------------------------------------------------------------------------
Shipments and pistols
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["shipments"] = {
["AK47"] = true,
["Desert eagle"] = true,
["Fiveseven"] = true,
["Glock"] = true,
["M4"] = true,
["Mac 10"] = true,
["MP5"] = true,
["P228"] = true,
["Pump shotgun"] = true,
["Sniper rifle"] = true,
}

--[[---------------------------------------------------------------------------
Entities
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["entities"] = {
["Drug lab"] = true,
["Gun lab"] = true,
["Money printer"] = true,
["Microwave"] = true, --Hungermod only
["Tip Jar"] = true,
}

--[[---------------------------------------------------------------------------
Vehicles
(at the moment there are no default vehicles)
You could use this to disable vehicles you added in the vehicles.lua located in the darkrp_customthings folder.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["vehicles"] = {

}

--[[---------------------------------------------------------------------------
Food
Food is only enabled when hungermod is enabled (see disabled modules above).
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["food"] = {
["Banana"] = true,
["Bunch of bananas"] = true,
["Melon"] = true,
["Glass bottle"] = true,
["Pop can"] = true,
["Plastic bottle"] = true,
["Milk"] = true,
["Bottle 1"] = true,
["Bottle 2"] = true,
["Bottle 3"] = true,
["Orange"] = true,
}

--[[---------------------------------------------------------------------------
Door groups
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["doorgroups"] = {
["Cops and Mayor only"] = true,
["Gundealer only"] = true,
}


--[[---------------------------------------------------------------------------
Ammo packets
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["ammo"] = {
["Pistol ammo"] = true,
["Rifle ammo"] = true,
["Shotgun ammo"] = true,
}

--[[---------------------------------------------------------------------------
Agendas
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["agendas"] = {
["Gangster's agenda"] = false,
["Police agenda"] = false,
}

--[[---------------------------------------------------------------------------
Chat groups (chat with /g)
Chat groups do not have names, so their index is used instead.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["groupchat"] = {
[1] = false, -- Police group chat (mayor, cp, chief and/or your custom CP teams)
[2] = false, -- Group chat between gangsters and the mobboss
[3] = false, -- Group chat between people of the same team
}

--[[---------------------------------------------------------------------------
Jobs that are hitmen
set to true to disable
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["hitmen"] = {
["mobboss"] = false,
}

--[[---------------------------------------------------------------------------
Demote groups
When anyone is demote from any job in this group, they will be temporarily banned
from every job in the group
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["demotegroups"] = {
["Cops"] = false,
["Gangsters"] = false,
}
Pourtant pas de problèmes...
 
Daykew

Daykew

Geek suprême
Messages
503
Score réaction
32
Points
140
SKCLogan à dit:
oui je te mets le fichiers si jamais j'aurais fait une erreur

--[[---------------------------------------------------------------------------
DarkRP disabled defaults
---------------------------------------------------------------------------

DarkRP comes with a bunch of default things:
- a load of modules
- default jobs
- shipments and guns
- entities (like the money printer)
and many more

If you want to disable or replace the default things, you should disable them here

Note: if you want to have e.g. edit the official medic job, you MUST disable the default one in this file!
You can copy the medic from DarkRP and paste it in darkrp_config/jobs.lua
---------------------------------------------------------------------------]]


--[[---------------------------------------------------------------------------
The list of modules that are disabled. Set to true to disable, false to enable.
Modules that are not in this list are enabled by default.
In some cases some external addons may overwrite one of the modules below and will expect them to be enabled to work.
In these few cases it will be pretty obvious when you expect something to happen and nothing does.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["modules"] = {
["afk"] = true,
["chatsounds"] = false,
["events"] = false,
["fpp"] = false,
["f1menu"] = false,
["f4menu"] = false,
["hitmenu"] = false,
["hud"] = false,
["hungermod"] = false,
["playerscale"] = false,
["sleep"] = false,
["fadmin"] = false,
}



--[[---------------------------------------------------------------------------
The disabled default jobs. true to disable, false to enable.

NOTE: If you disable a job and remake it, expect things that rely on the job to stop working
e.g. you disable the gundealer and you make a new job as TEAM_GUN. If you want the shipments/door groups/etc. to
work for your custom job, remake them to include your job as well.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["jobs"] = {
["chief"] = true,
["citizen"] = true,
["cook"] = true, --Hungermod only
["cp"] = true,
["gangster"] = true,
["gundealer"] = true,
["hobo"] = true,
["mayor"] = true,
["medic"] = true,
["mobboss"] = true,
}

--[[---------------------------------------------------------------------------
Shipments and pistols
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["shipments"] = {
["AK47"] = true,
["Desert eagle"] = true,
["Fiveseven"] = true,
["Glock"] = true,
["M4"] = true,
["Mac 10"] = true,
["MP5"] = true,
["P228"] = true,
["Pump shotgun"] = true,
["Sniper rifle"] = true,
}

--[[---------------------------------------------------------------------------
Entities
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["entities"] = {
["Drug lab"] = true,
["Gun lab"] = true,
["Money printer"] = true,
["Microwave"] = true, --Hungermod only
["Tip Jar"] = true,
}

--[[---------------------------------------------------------------------------
Vehicles
(at the moment there are no default vehicles)
You could use this to disable vehicles you added in the vehicles.lua located in the darkrp_customthings folder.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["vehicles"] = {

}

--[[---------------------------------------------------------------------------
Food
Food is only enabled when hungermod is enabled (see disabled modules above).
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["food"] = {
["Banana"] = true,
["Bunch of bananas"] = true,
["Melon"] = true,
["Glass bottle"] = true,
["Pop can"] = true,
["Plastic bottle"] = true,
["Milk"] = true,
["Bottle 1"] = true,
["Bottle 2"] = true,
["Bottle 3"] = true,
["Orange"] = true,
}

--[[---------------------------------------------------------------------------
Door groups
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["doorgroups"] = {
["Cops and Mayor only"] = true,
["Gundealer only"] = true,
}


--[[---------------------------------------------------------------------------
Ammo packets
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["ammo"] = {
["Pistol ammo"] = true,
["Rifle ammo"] = true,
["Shotgun ammo"] = true,
}

--[[---------------------------------------------------------------------------
Agendas
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["agendas"] = {
["Gangster's agenda"] = false,
["Police agenda"] = false,
}

--[[---------------------------------------------------------------------------
Chat groups (chat with /g)
Chat groups do not have names, so their index is used instead.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["groupchat"] = {
[1] = false, -- Police group chat (mayor, cp, chief and/or your custom CP teams)
[2] = false, -- Group chat between gangsters and the mobboss
[3] = false, -- Group chat between people of the same team
}

--[[---------------------------------------------------------------------------
Jobs that are hitmen
set to true to disable
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["hitmen"] = {
["mobboss"] = false,
}

--[[---------------------------------------------------------------------------
Demote groups
When anyone is demote from any job in this group, they will be temporarily banned
from every job in the group
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["demotegroups"] = {
["Cops"] = false,
["Gangsters"] = false,
}
Recommence ton métier commissaire en laissant la team en TEAM_CHIEF et la commande en chief, prend la commande de base https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua#L16
 
  • Initiateur de la discussion
S

SKCLogan

Têtard
Messages
8
Score réaction
0
Points
5
Bon avec le nouveau métier ca marche
 
Daykew

Daykew

Geek suprême
Messages
503
Score réaction
32
Points
140
SKCLogan à dit:
Bon avec le nouveau métier ca marche
Nickel, peux tu mettre le topic en résolu maintenant ?
 
  • Initiateur de la discussion
S

SKCLogan

Têtard
Messages
8
Score réaction
0
Points
5
juste une petite quesiton faut que je mette team_chief a tout les jobs dont j'ai besoin car j'ai 4 autres jobs comme ca
 
T

TheRedParrot

Nouveau né
Messages
19
Score réaction
7
Points
15
SKCLogan à dit:
juste une petite quesiton faut que je mette team_chief a tout les jobs dont j'ai besoin car j'ai 4 autres jobs comme ca
Nan, si tu mes plusieurs fois la même team tu auras des erreurs. Mais ta TEAM_POLICE n’a pas les mandats ? Si non y’a un problème... ou alors tu as modifié quelque chose.

Tu peux suivre ce tutoriel: https://gmod.facepunch.com/f/gmodhelp/fsfq/DarkRP-Making-a-job-that-can-want-warrant/1/ je n’ai pas trop le temps de t’expliquer actuellement, mais si tu n’y arrives pas j’essaierai de trouver du temps ;) GL
 
  • Initiateur de la discussion
S

SKCLogan

Têtard
Messages
8
Score réaction
0
Points
5
non non ma team police peut y mettre mais je n'avais que cette team maintenant je peux avec les commissaire mais il me reste le lieutenant le raid et le chef du raid qui ont pas accès au commande
 
  • Initiateur de la discussion
S

SKCLogan

Têtard
Messages
8
Score réaction
0
Points
5
TheRedParrot à dit:
Nan, si tu mes plusieurs fois la même team tu auras des erreurs. Mais ta TEAM_POLICE n’a pas les mandats ? Si non y’a un problème... ou alors tu as modifié quelque chose.

Tu peux suivre ce tutoriel: https://gmod.facepunch.com/f/gmodhelp/fsfq/DarkRP-Making-a-job-that-can-want-warrant/1/ je n’ai pas trop le temps de t’expliquer actuellement, mais si tu n’y arrives pas j’essaierai de trouver du temps ;) GL
j'ai un problème avec se que tu as mis dans le tutoriel c'est marquer qu'il y a un changement a faire dans un fichier mais je n'arrive pas a le trouver tu ne serais pas ou il est ?
 
  • Initiateur de la discussion
S

SKCLogan

Têtard
Messages
8
Score réaction
0
Points
5
ou quelqu'un d'autre serait me dire ou je le trouve ce player.lua
 
Discord d'entraide
Rejoignz-nous sur Discord