Problème de configuration des jobs darkrp.

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

KmAaZz

Nouveau né
Messages
7
Score réaction
0
Points
20
Bonjours je me présente Kmaazz j'ai créer un serveur il y a 1 semaine et j'ai des problème avec les job je n'arrive pas a les configurer. Je suit certain forum et je n'arrive pas a résoudre mon problème. J'ai même essayé de réinitialiser le serveur rien y fais .

Cordialement KmAaZz.
 
UssopSniperKing

UssopSniperKing

Geek suprême
Messages
598
Score réaction
116
Points
150
Ou est ton problème ? message d'erreur ? codes des métiers ?
 
  • Initiateur de la discussion
KmAaZz

KmAaZz

Nouveau né
Messages
7
Score réaction
0
Points
20
Codes des metiers regarde ses normal sa non ?

--[[---------------------------------------------------------------------------
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_CITOYEN = DarkRP.createJob("Citoyen"), {
color = Color(5, 255, 0, 255),
model = {
"models/player/Group01/male_01.mdl",
"models/player/Group01/male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/male_04.mdl",
"models/player/Group01/male_05.mdl",
"models/player/Group01/male_06.mdl",
"models/player/Group01/male_07.mdl",
"models/player/Group01/male_08.mdl",
"models/player/Group01/male_09.mdl",
"models/player/Group01/female_01.mdl",
"models/player/Group01/female_02.mdl",
"models/player/Group01/female_03.mdl",
"models/player/Group01/female_04.mdl",
"models/player/Group01/female_05.mdl",
"models/player/Group01/female_06.mdl"
},
description = [[Vous devez voter pour le maire et participer au evenement de la ville]],
weapons = {},
command = "Citoyen",
max = 0,
salary = 150,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
category = "Citoyen"
})


DarkRP.createCategory{
name = "Citoyen",
categorises = "jobs",
startExpanded = true,
color = Color(5, 255, 0, 255),
canSee = function(ply) return true end,
sortOrder = 1
}
 
  • Initiateur de la discussion
KmAaZz

KmAaZz

Nouveau né
Messages
7
Score réaction
0
Points
20
et sa le disable_default


--[[---------------------------------------------------------------------------
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"] = 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,
["Citoyen"] = false,
["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"] = 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 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,
}
 
UssopSniperKing

UssopSniperKing

Geek suprême
Messages
598
Score réaction
116
Points
150
il manque une virgule à candemote :
comme ceci
candemote = false,
Utilise les Balises CODE et /CODE entre crochets ( une au début l'autre à la fin du code)
 
  • Initiateur de la discussion
KmAaZz

KmAaZz

Nouveau né
Messages
7
Score réaction
0
Points
20
Quoi ?
 
UssopSniperKing

UssopSniperKing

Geek suprême
Messages
598
Score réaction
116
Points
150
Code:
TEAM_CITOYEN = DarkRP.createJob("Citoyen"), {
color = Color(5, 255, 0, 255),
model = {
"models/player/Group01/male_01.mdl",
"models/player/Group01/male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/male_04.mdl",
"models/player/Group01/male_05.mdl",
"models/player/Group01/male_06.mdl",
"models/player/Group01/male_07.mdl",
"models/player/Group01/male_08.mdl",
"models/player/Group01/male_09.mdl",
"models/player/Group01/female_01.mdl",
"models/player/Group01/female_02.mdl",
"models/player/Group01/female_03.mdl",
"models/player/Group01/female_04.mdl",
"models/player/Group01/female_05.mdl",
"models/player/Group01/female_06.mdl"
},
description = [[Vous devez voter pour le maire et participer au evenement de la ville]],
weapons = {},
command = "Citoyen",
max = 0,
salary = 150,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citoyen"
})
 
  • Initiateur de la discussion
KmAaZz

KmAaZz

Nouveau né
Messages
7
Score réaction
0
Points
20
Me moi quand je fait sa sa me fait RIEN
 
UssopSniperKing

UssopSniperKing

Geek suprême
Messages
598
Score réaction
116
Points
150
tu a créer la category citoyen ?
 
Discord d'entraide
Rejoignz-nous sur Discord