- Initiateur de la discussion
S
Salothard
Geek
- Messages
- 5
- Score réaction
- 0
- Points
- 65
Bonjour et tout d'abord merci de me lire, je me suis lancé dans la création d'un serveur darkRP prison, je me suis tranquillement mit à coder les métiers, mais la, je tombe sans cesse sur une erreur lua qui est :
Mais, je n’arrête pas de vérifier, je ne vois pas d'erreur dans le fichier concerné :
-- People often copy jobs. When they do, the GM table does not exist anymore.
-- This line makes the job code work both inside and outside of gamemode files.
-- You should not copy this line into your code.
local GAMEMODE = GAMEMODE or GM
TEAM_CITIZEN = DarkRP.createJob("Prisonnier", {
color = Color(255, 140, 0, 255),
model = {
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"},
description = [[Le Prisonnier, c'est un peu le clochard, c'est la sous-merde de la prison]],
weapons = {},
command = "citizen",
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Prisonniers",
})
TEAM_POLICE = DarkRP.createJob("Garde Des Cellules", {
color = Color(25, 25, 170, 255),
model = {"models/player/barney.mdl"},
description = [[Vous devez garder ces pleutres dans cette prison !]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 7,
salary = GAMEMODE.Config.normalsalary * 1.45,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 600,
},
category = "Gardes",
})
Lua Error:
[DarkRP] gamemodes/darkrp/gamemode/config/jobrelated.lua:58: '}' expected (to close '{' at line 43) near ')'
1. unknown - gamemodes/darkrp/gamemode/config/jobrelated.lua:0
[[CoFon_AlcatrazRP]Empereur Jame|2|STEAM_0:0:74835613] Lua Error:
[ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:20: unexpected symbol near '{'
1. unknown - addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:0
[DarkRP] gamemodes/darkrp/gamemode/config/jobrelated.lua:58: '}' expected (to close '{' at line 43) near ')'
1. unknown - gamemodes/darkrp/gamemode/config/jobrelated.lua:0
[[CoFon_AlcatrazRP]Empereur Jame|2|STEAM_0:0:74835613] Lua Error:
[ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:20: unexpected symbol near '{'
1. unknown - addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:0
Mais, je n’arrête pas de vérifier, je ne vois pas d'erreur dans le fichier concerné :
-- People often copy jobs. When they do, the GM table does not exist anymore.
-- This line makes the job code work both inside and outside of gamemode files.
-- You should not copy this line into your code.
local GAMEMODE = GAMEMODE or GM
TEAM_CITIZEN = DarkRP.createJob("Prisonnier", {
color = Color(255, 140, 0, 255),
model = {
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"},
description = [[Le Prisonnier, c'est un peu le clochard, c'est la sous-merde de la prison]],
weapons = {},
command = "citizen",
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Prisonniers",
})
TEAM_POLICE = DarkRP.createJob("Garde Des Cellules", {
color = Color(25, 25, 170, 255),
model = {"models/player/barney.mdl"},
description = [[Vous devez garder ces pleutres dans cette prison !]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 7,
salary = GAMEMODE.Config.normalsalary * 1.45,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 600,
},
category = "Gardes",
})