- Initiateur de la discussion
SkydrazZ
Psychopathe
- Messages
- 1 590
- Score réaction
- 458
- Points
- 340
Salut !
J'ai voulu modifier mes jobs mais voila se que ça me fait :
Mon fichier job.lua :
Je ne comprend vraiment pas..
Merci de votre aide !
J'ai voulu modifier mes jobs mais voila se que ça me fait :
Code:
There are 2 Lua problems! 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 135.
The best help I can give you is this:
There is an opening '{' bracket at line 117, but this bracket is never closed or not closed in time. It was expected to be closed before the 'modelScale' at line 135.
Hints: - Did you forget a comma? - All open brackets ({, (, [) must have a matching closing bracket. Are you sure it's there? - Brackets must be opened and closed in the right order. This will work: ({}), but this won't: ({)}.
------- End of Simplerr error -------
[ERROR] A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 687.
The best help I can give you is this:
DarkRP was unable to introduce player "Wukimos" to the game. Expect further errors and shit generally being fucked!
Hints: - This error most likely does not stand on its own, and previous serverside errors have a very good chance of telling you the cause. - Note that errors from another addon could cause this. Specifically when they're thrown during 'PlayerInitialSpawn'. - This error can also be caused by some other addon returning a value in 'PlayerInitialSpawn', though that is less likely. - Errors in your DarkRP configuration (jobs, shipments, etc.) could also cause this. Earlier errors should tell you when this is the case.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
------- End of Simplerr error -------
Code:
--[[---------------------------------------------------------------------------
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_CITIZEN = AddExtraTeam("Enfant", {
color = Color(34, 85, 85, 255),
model = { "models/player/custom/neville.mdl", "models/player/hwrpb/hwrpb.mdl", "models/player/custom/cho.mdl", "models/player/lordsaw_fps/lavenderv8.mdl" },
description = [[]],
weapons = {},
command = "enfant",
max = 0,
salary = 5,
admin = 0,
vote = false,
hasLicense = false,
modelScale = 0.7
})
TEAM_FRANCAIS = AddExtraTeam("Professeur de Français", {
color = Color(120, 163, 163, 255),
model = "models/player/umbridge/umbridge.mdl",
description = [[]],
weapons = {"slappers"},
command = "francais",
max = 1,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_DIRECTEUR = AddExtraTeam("Directeur", {
color = Color(255, 0, 3, 255),
model = "models/player/lupin/lupin.mdl",
description = [[]],
weapons = {"slappers", "arrest_stick", "unarrest_stick"},
command = "directeur",
max = 1,
salary = 70,
admin = 0,
vote = true,
hasLicense = false,
})
TEAM_MATH = AddExtraTeam("Professeur de Mathématiques", {
color = Color(23, 216, 121, 255),
model = "models/player/flitwick/flitwick.mdl",
description = [[]],
weapons = {"slappers"},
command = "math",
max = 1,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_SURVEILLANT = AddExtraTeam("Surveillant", {
color = Color(255, 0, 3, 255),
model = "models/ontherailroad/bioshock_infinite/elizabeth/player/lizdlcb1_player.mdl",
description = [[]],
weapons = {"slappers", "arrest_stick", "unarrest_stick"},
command = "surveillant",
max = 3,
salary = 150,
admin = 0,
vote = true,
hasLicense = false,
})
TEAM_PESTE = AddExtraTeam("Petite Peste", {
color = Color(149, 94, 193, 255),
model = "models/player/naruto/hermione.mdl",
description = [[]],
weapons = {"slappers"},
command = "peste",
max = 5,
salary = 5,
admin = 0,
vote = false,
hasLicense = false,
modelScale = 0.7
})
TEAM_BRUTAL = AddExtraTeam("Enfant Brutal", {
color = Color(255, 0, 3, 255),
model = "models/player/lordsaw_fps/noirgryffondorv1_lod.mdl",
description = [[]],
weapons = {"weapon_fists"},
command = "brutal",
max = 5,
salary = 5,
admin = 0,
vote = false,
hasLicense = false,
modelScale = 0.7
})
TEAM_JOUET = AddExtraTeam("*VIP* Jouet Electronique", {
color = Color(255, 212, 0, 255),
model = { "models/i6nis/foxy_player.mdl", "models/i6nis/chica_player.mdl", "models/i6nis/freddy_player.mdl", "models/i6nis/bonnie_player.mdl" },
description = [[]],
weapons = {""},
command = "jouet",
max = 4,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return ply:IsUserGroup("admin") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("Modérateur") or ply:IsUserGroup("vip") end,
CustomCheckFailMsg = "Tu n est pas VIP."
modelScale = 0.2
})
TEAM_PEDOPHILE = AddExtraTeam("Pédophile", {
color = Color(252, 1, 166, 255),
model = "models/player/pbear/pbear.mdl",
description = [[]],
weapons = {"guitar", "weapon_rape"},
command = "pedophile",
max = 3,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_MERE = AddExtraTeam("Mère", {
color = Color(110, 50, 117, 255),
model = { "models/player/lordsaw_fps/1serdaiglev1_lod.mdl", "models/player/lordsaw_fps/1serpentardgirl_lod.mdl" },
description = [[]],
weapons = {"slappers"},
command = "mere",
max = 3,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_PERE = AddExtraTeam("Père", {
color = Color(0, 44, 255, 255),
model = { "models/player/naruto/harrypm/harrypotterv4.mdl", "models/player/lordsaw_fps/blondgryffondorv1.mdl" },
description = [[]],
weapons = {"slappers"},
command = "pere",
max = 3,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_RACKETTEUR = AddExtraTeam("Raquetteur", {
color = Color(255, 0, 1, 255),
model = "models/player/garrys/garrys.mdl",
description = [[]],
weapons = {"weapon_fists"},
command = "racketteur",
max = 3,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_FRANCAIS = AddExtraTeam("Professeur d'Histoire", {
color = Color(255, 151, 0, 255),
model = "models/player/sprout.mdl",
description = [[]],
weapons = {"slappers"},
command = "histoire",
max = 1,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_STAFFONLY = AddExtraTeam("STAFF ONLY", {
color = Color(255, 0, 3, 255),
model = "models/player/naruto/mcgonalpm/snapev4.mdl",
description = [[]],
weapons = {""},
command = "staffonly",
max = 0,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return ply:IsUserGroup("admin") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("Modérateur") end,
CustomCheckFailMsg = "Tu ne fais pas parti du staff."
})
TEAM_PSYCHOPATHE = AddExtraTeam("*VIP* Enfant Psychopathe", {
color = Color(255, 0, 3, 255),
model = { "models/player/lordsaw_fps/goyle_lod.mdl", "models/player/lordsaw_fps/crabbe.mdl", "models/player/lordsaw_fps/gennyv3.mdll" },
description = [[]],
weapons = {"csgo_bowie_fade"},
command = "psychopathe",
max = 3,
salary = 5,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return ply:IsUserGroup("admin") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("Modérateur") or ply:IsUserGroup("vip") end,
CustomCheckFailMsg = "Tu n est pas VIP."
modelScale = 0.7
})
--[[---------------------------------------------------------------------------
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)
Merci de votre aide !