- Initiateur de la discussion
Bababy
Bambi
- Messages
- 21
- Score réaction
- 2
- Points
- 30
Bien le bonjour, je souhaite créer un serveur SCPRP mais je n'arrive pas à créer de job par défaut. Genre si j'arrive sur mon serveur j'aurais mon job de base. J'ai bien désactivé les jobs par défauts du darkrp :
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,
}
Ensuite je vais dans mon job.lua et je mets :
GAMEMODE.DefaultTeam = TEAM_SPAWN
Voici le script du job TEAM_SPAWN :
TEAM_SPAWN = DarkRP.createJob("En spawn", {
color = Color(0, 0, 0, 255),
model = {
"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_06.mdl",
"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"
},
description = [[Vous venez d'arriver sur le serveur.]],
weapons = {},
command = "spawn",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Autres :",
})
Quand j'arrive sur mon serveur ça me mets :
[ERROR] A runtime error has occurred in "lua/darkrp_customthings/jobs.lua" on line -1.
The best help I can give you is this:
GAMEMODE.DefaultTeam is not set to an existing job.
Hints:
- This may happen when you disable the default citizen job. Make sure you update GAMEMODE.DefaultTeam to the new default team.
- GAMEMODE.DefaultTeam may be set to a job that does not exist anymore. Did you remove the job you had set to default?
- The error being in jobs.lua is a guess. This is usually right, but the problem might lie somewhere else.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
jobs.lua, settings.lua, disabled_defaults.lua or any of your other custom files.
------- End of Simplerr error -------
Que faire ?
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,
}
Ensuite je vais dans mon job.lua et je mets :
GAMEMODE.DefaultTeam = TEAM_SPAWN
Voici le script du job TEAM_SPAWN :
TEAM_SPAWN = DarkRP.createJob("En spawn", {
color = Color(0, 0, 0, 255),
model = {
"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_06.mdl",
"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"
},
description = [[Vous venez d'arriver sur le serveur.]],
weapons = {},
command = "spawn",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Autres :",
})
Quand j'arrive sur mon serveur ça me mets :
[ERROR] A runtime error has occurred in "lua/darkrp_customthings/jobs.lua" on line -1.
The best help I can give you is this:
GAMEMODE.DefaultTeam is not set to an existing job.
Hints:
- This may happen when you disable the default citizen job. Make sure you update GAMEMODE.DefaultTeam to the new default team.
- GAMEMODE.DefaultTeam may be set to a job that does not exist anymore. Did you remove the job you had set to default?
- The error being in jobs.lua is a guess. This is usually right, but the problem might lie somewhere else.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
jobs.lua, settings.lua, disabled_defaults.lua or any of your other custom files.
------- End of Simplerr error -------
Que faire ?