- Initiateur de la discussion
MrProof
Geek suprême
- Messages
- 428
- Score réaction
- 60
- Points
- 130
Bonjour alors je crée mon serveur SCP et voici mon soucis dans job.lua
le job.lua :
--[[---------------------------------------------------------------------------
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_SCP = DarkRP.createJob("SCP 049", {
color = Color(163, 9, 9, 255),
model = {"models/vinrax/player/scp049_player.mdl"},
description = [[Docteur de la peste]],
weapons = {"scp_049"},
command = "doctorscp",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "SCP",
PlayerSpawn = function(ply)
ply:SetMaxHealth(99999)
ply:SetHealth(99999)
ply:SetArmor(0)
end
})
TEAM_SCP2 = DarkRP.createJob("SCP 173", {
color = Color(163, 9, 9, 255),
model = {"models/new173/new173.mdl"},
description = [[SCP 173 l'Original]],
weapons = {"weapon_scp173"},
command = "scp173",
max = 1,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "SCP",
PlayerSpawn = function(ply)
ply:SetMaxHealth(99999)
ply:SetHealth(99999)
ply:SetArmor(0)
end
})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZEN
--[[---------------------------------------------------------------------------
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] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
L'Erreur console qui provoque un soucis de spawn/ULX et le job lui même apparait pas ! Merci d'avance !
There is 1 Lua problem!
Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 21.
The best help I can give you is this:
Right before the ',', Lua encountered something it could not make sense of.
Hints:
- Did you forget something here? (Perhaps a closing bracket)
- Is it a typo?
------- End of Simplerr error -------
J'ai aussi regarder ligne 21 mais il y a rien de spécial
le job.lua :
--[[---------------------------------------------------------------------------
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_SCP = DarkRP.createJob("SCP 049", {
color = Color(163, 9, 9, 255),
model = {"models/vinrax/player/scp049_player.mdl"},
description = [[Docteur de la peste]],
weapons = {"scp_049"},
command = "doctorscp",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "SCP",
PlayerSpawn = function(ply)
ply:SetMaxHealth(99999)
ply:SetHealth(99999)
ply:SetArmor(0)
end
})
TEAM_SCP2 = DarkRP.createJob("SCP 173", {
color = Color(163, 9, 9, 255),
model = {"models/new173/new173.mdl"},
description = [[SCP 173 l'Original]],
weapons = {"weapon_scp173"},
command = "scp173",
max = 1,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "SCP",
PlayerSpawn = function(ply)
ply:SetMaxHealth(99999)
ply:SetHealth(99999)
ply:SetArmor(0)
end
})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZEN
--[[---------------------------------------------------------------------------
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] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
L'Erreur console qui provoque un soucis de spawn/ULX et le job lui même apparait pas ! Merci d'avance !
There is 1 Lua problem!
Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 21.
The best help I can give you is this:
Right before the ',', Lua encountered something it could not make sense of.
Hints:
- Did you forget something here? (Perhaps a closing bracket)
- Is it a typo?
------- End of Simplerr error -------
J'ai aussi regarder ligne 21 mais il y a rien de spécial