Bug disabled_default.lua

  • Initiateur de la discussion
S

sunmoonyan

Geek suprême
Messages
103
Score réaction
1
Points
110
Bonjour, quand je desactive les metiers de base dans disabled_default.lua le serveur bug (noclip desactivé, ect...)
voici le script


disabled_defaults:
--[[---------------------------------------------------------------------------
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"] = true, ["f4menu"] = false, ["hitmenu"] = false, ["hud"] = false, ["hungermod"] = false, ["playerscale"] = false, ["sleep"] = true, ["fadmin"] = false, ["animations"] = true, ["chatindicator"] = 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"] = false, ["Gundealer only"] = false,
}
--[[---------------------------------------------------------------------------
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 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, ["Deprecated console commands"] = false, ["disable CAC"] = false,
}
 
Love Gmod

Love Gmod

Geek suprême
Messages
164
Score réaction
16
Points
115
Dans ton jobs.lua tu a bien remis les jobs ?
 
  • Initiateur de la discussion
S

sunmoonyan

Geek suprême
Messages
103
Score réaction
1
Points
110
oui
 
  • Initiateur de la discussion
S

sunmoonyan

Geek suprême
Messages
103
Score réaction
1
Points
110
je vien de voir que j'avais désactivé des metiers que je n'avais pas remis , merci
 
Discord d'entraide
Rejoignz-nous sur Discord