Erreur Lua

  • Initiateur de la discussion Sackayy
  • Date de début
  • Initiateur de la discussion
S

Sackayy

Bambi
Messages
3
Score réaction
0
Points
35
Voila j'ai commencer à installer des Jobs mais ensuite des que je lance le jeu il y a écrit

[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 151.

Et quand je suis superadmin j'ai plus rien afficher dans le menu TAB help plz !

Je vous affiche toute ma page de mes Jobs :

--[[---------------------------------------------------------------------------
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 jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_MERCENAIRE = DarkRP.createJob("Mercenaire", {
color = Color(0, 255, 255, 255),
model = {"models/player/leet.mdl"},
description = [[Braquez les autres et amuse toi bien ! ]],
weapons = {},
command = "mercenaire",
max = 3,
salary = 90,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_POLICIER = DarkRP.createJob("Policier", {
color = Color(0, 63, 255, 255),
model = {"models/player/nypd/male_02.mdl"},
description = [[]],
weapons = {},
command = "policier",
max = 4,
salary = 110,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_SDF = DarkRP.createJob("Sdf", {
color = Color(0, 0, 0, 255),
model = {"models/player/scavenger/scavenger.mdl"},
description = [[Demande de l'argent au gens :)]],
weapons = {},
command = "sdf",
max = 2,
salary = 2,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_MAFIEU = DarkRP.createJob("Mafieu", {
color = Color(0, 0, 0, 255),
model = {"models/humans/mafia/male_08.mdl"},
description = [[]],
weapons = {},
command = "mafieu",
max = 6,
salary = 70,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_BRAQUEURS = DarkRP.createJob("Braqueurs", {
color = Color(12, 255, 0, 255),
model = {"models/player/pd2_chains_p.mdl","models/player/pd2_dallas_p.mdl","models/player/pd2_hoxton_p.mdl","models/player/pd2_wolf_p.mdl"},
description = [[Braque les gens !]],
weapons = {},
command = "Braqueurs",
max = 4,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_NINJA = DarkRP.createJob("Ninja", {
color = Color(255, 255, 255, 255),
model = {"models/player/overwatch/genji.mdl"},
description = [[Fait le Ninja]],
weapons = {},
command = "ninja",
max = 2,
salary = 70,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",




--[[---------------------------------------------------------------------------
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,
[TEAM_POLICIER] = false,
}

--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)




Je ne voit pas mes Jobs que j'ai mis ! :/
 
P

PCMalexis

Geek suprême
Messages
600
Score réaction
49
Points
125
Salut a la fin du metier ninja tu a oublier })
 
  • Initiateur de la discussion
S

Sackayy

Bambi
Messages
3
Score réaction
0
Points
35
Je vais voir cela !!
 
Discord d'entraide
Rejoignz-nous sur Discord