PROBLEME JOB PAR DEFAULT

  • Initiateur de la discussion Hydrox
  • Date de début
  • Initiateur de la discussion
Hydrox

Hydrox

Geek
Messages
50
Score réaction
5
Points
45
Bonjour à tous en ce moment je code mon serveur star wars rp j'ai un probleme par rapport au job par default maire ect qui s affiche sur mon menu f4 j ai tous essayer mais rien ne marche je pense que cela vien de disabled_default.lua je vous donne le code



--[[---------------------------------------------------------------------------
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"] = true,
["hitmenu"] = false,
["hud"] = false,
["hungermod"] = true,
["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"] = false,
["cook"] = false, --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"] = 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"] = true,
["Gundealer only"] = true,
}


--[[---------------------------------------------------------------------------
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"] = true,
}

--[[---------------------------------------------------------------------------
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"] = true,
["Gangsters"] = true,
}
pouvez vous m'aider merci d'avance
 
SGCAtlantis

SGCAtlantis

Psychopathe
Messages
2 408
Score réaction
443
Points
300
Hydrox à dit:
Bonjour à tous en ce moment je code mon serveur star wars rp j'ai un probleme par rapport au job par default maire ect qui s affiche sur mon menu f4 j ai tous essayer mais rien ne marche je pense que cela vien de disabled_default.lua je vous donne le code



--[[---------------------------------------------------------------------------
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"] = true,
["hitmenu"] = false,
["hud"] = false,
["hungermod"] = true,
["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"] = false,
["cook"] = false, --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"] = 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"] = true,
["Gundealer only"] = true,
}


--[[---------------------------------------------------------------------------
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"] = true,
}

--[[---------------------------------------------------------------------------
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"] = true,
["Gangsters"] = true,
}
pouvez vous m'aider merci d'avance
Bonjour,
As tu restart ton serveur après modification ?
 
  • Initiateur de la discussion
Hydrox

Hydrox

Geek
Messages
50
Score réaction
5
Points
45
SGCAtlantis à dit:
Bonjour,
As tu restart ton serveur après modification ?
Oui à chaque modif
 
[lenny]

[lenny]

Geek
Messages
169
Score réaction
0
Points
65
Hydrox à dit:
Oui à chaque modif
deja petit probleme ton metier par default cook est en false mais tout tes jobs en true. si tu comprend pas viens ts grackity.miki-heberg.fr
 
  • Initiateur de la discussion
Hydrox

Hydrox

Geek
Messages
50
Score réaction
5
Points
45
[lenny] à dit:
deja petit probleme ton metier par default cook est en false mais tout tes jobs en true. si tu comprend pas viens ts grackity.miki-heberg.fr
dac j'arrive mais tu t'appelle comment sur ts
 
[lenny]

[lenny]

Geek
Messages
169
Score réaction
0
Points
65
Hydrox à dit:
dac j'arrive mais tu t'appelle comment sur ts
ok viens ts grackcity.miki-heberg.fr je m’appelle lenny
 
  • Initiateur de la discussion
Hydrox

Hydrox

Geek
Messages
50
Score réaction
5
Points
45
[lenny] à dit:
ok viens ts grackcity.miki-heberg.fr je m’appelle lenny
ok j'y suis moi c'est hydrox
 
  • Initiateur de la discussion
Hydrox

Hydrox

Geek
Messages
50
Score réaction
5
Points
45
toujours pas résolu :(
 
SGCAtlantis

SGCAtlantis

Psychopathe
Messages
2 408
Score réaction
443
Points
300
  • Initiateur de la discussion
Hydrox

Hydrox

Geek
Messages
50
Score réaction
5
Points
45
SGCAtlantis à dit:
Réinstal ton darkrp
Oui mais sa va supprimer tous les jobs que j'ai fais auparavant ?
 
[lenny]

[lenny]

Geek
Messages
169
Score réaction
0
Points
65
SGCAtlantis

SGCAtlantis

Psychopathe
Messages
2 408
Score réaction
443
Points
300
Hydrox à dit:
Oui mais sa va supprimer tous les jobs que j'ai fais auparavant ?
Tu réinstal le gamemode = darkrp
Tes jobs sont dans le darkrpmodification donc ils seront pas supp
 
  • Initiateur de la discussion
Hydrox

Hydrox

Geek
Messages
50
Score réaction
5
Points
45
SGCAtlantis à dit:
Tu réinstal le gamemode = darkrp
Tes jobs sont dans le darkrpmodification donc ils seront pas supp
c'est fais mais ça ne change rien
 
  • Initiateur de la discussion
Hydrox

Hydrox

Geek
Messages
50
Score réaction
5
Points
45
Hydrox à dit:
c'est fais mais ça ne change rien
ok nan c bon j ai réussi j ai juste retélécharger le disable et sa a marcher merci quand meme
 
SGCAtlantis

SGCAtlantis

Psychopathe
Messages
2 408
Score réaction
443
Points
300
Hydrox à dit:
ok nan c bon j ai réussi j ai juste retélécharger le disable et sa a marcher merci quand meme
De rien pense à édite ton poste sur résolu ;)
 
Discord d'entraide
Rejoignz-nous sur Discord