Probleme jobs

  • Initiateur de la discussion
Y

Yevel

Têtard
Messages
6
Score réaction
0
Points
5
Bonjour,
Je suis en train de crée mon DarkRP et je suis face à un problème que je n'arrive pas à résoudre.
Je n'arrive pas à supprimer les jobs de base présent dans disabled_defaults.lua
--[[---------------------------------------------------------------------------
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,
["animations"] = 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"] = false,
["Desert eagle"] = false,
["Fiveseven"] = false,
["Glock"] = false,
["M4"] = false,
["Mac 10"] = false,
["MP5"] = false,
["P228"] = false,
["Pump shotgun"] = false,
["Sniper rifle"] = false,
}

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

--[[---------------------------------------------------------------------------
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"] = false,
["Bunch of bananas"] = false,
["Melon"] = false,
["Glass bottle"] = false,
["Pop can"] = false,
["Plastic bottle"] = false,
["Milk"] = false,
["Bottle 1"] = false,
["Bottle 2"] = false,
["Bottle 3"] = false,
["Orange"] = false,
}

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


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

--[[---------------------------------------------------------------------------
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 demoted from any job in this group, they will be temporarily banned
from every job in the group
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["demotegroups"] = {
["Cops"] = false,
["Gangsters"] = false,
}

--[[---------------------------------------------------------------------------
Workarounds

DarkRP works around some bugs in GMod and other addons that aren't maintained
(properly). Disabling workarounds will cause those things to break again.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["workarounds"] = {
["os.date() Windows crash"] = false,
["SkidCheck"] = false,
["nil SteamID64 and AccountID local server fix"] = false,
["Cam function descriptive errors"] = false,
["Error on edict limit"] = false,
["Durgz witty sayings"] = false,
["ULX /me command"] = false,
["gm_save"] = false,
["rp_downtown_v4c_v2 rooftop spawn"] = false,
["White flashbang flashes"] = false,
["APAnti"] = false,
["Wire field generator exploit fix"] = false,
["Door tool class fix"] = false,
["Constraint crash exploit fix"] = false,
}
DarkRP.createCategory{
name = "Civils",
categorises = "jobs",
startExpanded = true,
color = Color(37, 156, 29, 255),
canSee = function(ply) return true end,
sortOrder = 1
}
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] = false,
[TEAM_CHIEF] = false,
[TEAM_MAYOR] = false,

DarkRP.addHitmanTeam(TEAM_MOB)

TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(27, 163, 51, 255),
model = {"models/player/Group01/female_06.mdl"},
description = [[Citoyen classique]],
weapons = {"keys"},
command = "citoyen",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Civils"
})

que faire?
Yevel
 
Wasied

Wasied

Psychopathe
Messages
911
Score réaction
398
Points
210
Yevel à dit:
Bonjour,
Je suis en train de crée mon DarkRP et je suis face à un problème que je n'arrive pas à résoudre.
Je n'arrive pas à supprimer les jobs de base présent dans disabled_defaults.lua
--[[---------------------------------------------------------------------------
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,
["animations"] = 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"] = false,
["Desert eagle"] = false,
["Fiveseven"] = false,
["Glock"] = false,
["M4"] = false,
["Mac 10"] = false,
["MP5"] = false,
["P228"] = false,
["Pump shotgun"] = false,
["Sniper rifle"] = false,
}

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

--[[---------------------------------------------------------------------------
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"] = false,
["Bunch of bananas"] = false,
["Melon"] = false,
["Glass bottle"] = false,
["Pop can"] = false,
["Plastic bottle"] = false,
["Milk"] = false,
["Bottle 1"] = false,
["Bottle 2"] = false,
["Bottle 3"] = false,
["Orange"] = false,
}

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


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

--[[---------------------------------------------------------------------------
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 demoted from any job in this group, they will be temporarily banned
from every job in the group
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["demotegroups"] = {
["Cops"] = false,
["Gangsters"] = false,
}

--[[---------------------------------------------------------------------------
Workarounds

DarkRP works around some bugs in GMod and other addons that aren't maintained
(properly). Disabling workarounds will cause those things to break again.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["workarounds"] = {
["os.date() Windows crash"] = false,
["SkidCheck"] = false,
["nil SteamID64 and AccountID local server fix"] = false,
["Cam function descriptive errors"] = false,
["Error on edict limit"] = false,
["Durgz witty sayings"] = false,
["ULX /me command"] = false,
["gm_save"] = false,
["rp_downtown_v4c_v2 rooftop spawn"] = false,
["White flashbang flashes"] = false,
["APAnti"] = false,
["Wire field generator exploit fix"] = false,
["Door tool class fix"] = false,
["Constraint crash exploit fix"] = false,
}
DarkRP.createCategory{
name = "Civils",
categorises = "jobs",
startExpanded = true,
color = Color(37, 156, 29, 255),
canSee = function(ply) return true end,
sortOrder = 1
}
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] = false,
[TEAM_CHIEF] = false,
[TEAM_MAYOR] = false,

DarkRP.addHitmanTeam(TEAM_MOB)

TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(27, 163, 51, 255),
model = {"models/player/Group01/female_06.mdl"},
description = [[Citoyen classique]],
weapons = {"keys"},
command = "citoyen",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Civils"
})

que faire?
Yevel
Bah écoute, tu as bien mis true à tous les métiers de base, donc tu devrais les avoir supprimer logiquement..
Regarde si tu ne les a pas re-créé par hasard..

Wasied.
 
  • Initiateur de la discussion
Y

Yevel

Têtard
Messages
6
Score réaction
0
Points
5
Je trouve ca étrange, quand je me connecte voici ce que je vois dans ma console :
Capture.PNG
Cap224ture.PNG
 
Wasied

Wasied

Psychopathe
Messages
911
Score réaction
398
Points
210
Yevel à dit:
Je trouve ca étrange, quand je me connecte voici ce que je vois dans ma console :Regarde la pièce jointe 13051 Regarde la pièce jointe 13052
Envoie moi la ligne 9 (et celles environnantes) de ton jobs.lua
 
  • Initiateur de la discussion
Y

Yevel

Têtard
Messages
6
Score réaction
0
Points
5
Voici la ligne 9 à 22 :

Code:
TEAM_CITOYEN = DarkRP.createJob("Citoyen", { color = Color(27, 163, 51, 255), model = {"models/player/Group01/female_06.mdl"}, description = [[Citoyen classique]], weapons = {"keys"}, command = "citoyen", max = 0, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Civils"
})
 
Discord d'entraide
Rejoignz-nous sur Discord