Problème de job.

  • Initiateur de la discussion itchi259
  • Date de début
  • Initiateur de la discussion
itchi259

itchi259

Geek
Messages
36
Score réaction
1
Points
45
Bonsoir ou bonjour, j'ai un problème avec les jobs sur mon serveur, quand on se connecte on est en unassigned et il n'y a aucun jobs voici ce qui est marqué dans la console :
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 84.
The best help I can give you is this:

There is an opening '(' bracket at line 80, but this bracket is never closed or not closed in time. It was expected to be closed before the '=' at line 84.

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 "itchi259" 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 -------

Pouvez-vous m'aider ?
Merci.
 
Kitsu

Kitsu

Chuck Norris
Messages
6 076
Score réaction
2 505
Points
740
Bonjour,
Pourrais tu nous montrer la ligne 84 et aussi tout le job concerné ?
 
MattKiller68

MattKiller68

Psychopathe
Messages
1 156
Score réaction
309
Points
305
En gros, vous avez une parenthèse ouverte et jamais fermée. Pouvez-vous faire ce qu'a demandé notre chère Kitesu (loul)?
 
  • J'aime
Réactions: Kitsu
  • Initiateur de la discussion
itchi259

itchi259

Geek
Messages
36
Score réaction
1
Points
45
je ne peu malheureusement pas vous montrer la ligne 84 puisque je n'arrive pas a ouvrir le job.lua avec notepad++. voici entièrement mon fichier 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_CITIZEN = DarkRP.createJob("Citoyen", {
color = Color(20, 150, 20, 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 ette un simple citoyen]],
weapons = {},
command = "citizen",
max = 0,
salary = 5,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
})

TEAM_POLICE = DarkRP.createJob("Gendarme", {
color = Color(25, 25, 170, 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 devez protéger les habitants de la ville !]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 4,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 90,
},
category = "Civil Protection",
})

TEAM_MAYOR = DarkRP.createJob("President", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
},
description = [[Vous étte le président]],
weapons = {},
command = "mayor",
max = 1,
salary = 200,
admin = 0,
vote = true,
hasLicense = true,
mayor = true,
category = "Civil Protection",
})

TEAM_STAFF = DarkRP.createJob("Staff", {
color = Color(119, 37, 201, 255),
model = {
"models//sonicunleashed.mdl",
"models//npc_compa.mdl",
"models//sw_player_ahri_tails.mdl",
"models//player_linkweapons.mdl"
},
description = [[Ce job ne sert que aux admin qui sont en moderation.]],
weapons = {},
command = "Staff",
max = -0,
salary = 0,
admin = 1,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
})

TEAM_GUN = DarkRP.createJob("Vendeur d'armes", {
color = Color(255, 140, 0, 255),
model = "models/player/monk.mdl",
description = [[Vous vendées des armes.]],
weapons = {},
command = "gundealer",
max = 4,
salary = 300,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})

TEAM_GANG = DarkRP.createJob("Chef Gangster", {
color = Color(25, 25, 25, 255),
model = "models/player/gman_high.mdl",
description = [[Vous ette le chef des Gangster, vos hommes doivent vous obéir.]],
weapons = {"lockpick", "unarrest_stick"},
command = "mobboss",
max = 1,
salary = 450,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})

TEAM_POLICE = DarkRP.createJob("Comissaire", {
color = Color(20, 20, 255, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[Vous êtes le comissaire, vous diriger les gendarmes]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
command = "chief",
max = 1,
salary = 500,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
ammo = {
["pistol"] = 90,
},
category = "Civil Protection",
})

TEAM_MEDIC = DarkRP.createJob("Medecins", {
color = Color(47, 79, 79, 255),
model = "models/player/kleiner.mdl",
description = [[Vous soignez les gens SAUF si ils sont en pleine action (braquage ect...)]],
weapons = {"med_kit"},
command = "medic",
max = 3,
salary = 200,
admin = 0,
vote = false,
hasLicense = false,
medic = true,
category = "Citizens",
})

TEAM_GANG = DarkRP.createJob("Gangster", {
color = Color(75, 75, 75, 255),
model = {
"models/player/Group03/Female_01.mdl",
"models/player/Group03/Female_02.mdl",
"models/player/Group03/Female_03.mdl",
"models/player/Group03/Female_04.mdl",
"models/player/Group03/Female_06.mdl",
"models/player/group03/male_01.mdl",
"models/player/Group03/Male_02.mdl",
"models/player/Group03/male_03.mdl",
"models/player/Group03/Male_04.mdl",
"models/player/Group03/Male_05.mdl",
"models/player/Group03/Male_06.mdl",
"models/player/Group03/Male_07.mdl",
"models/player/Group03/Male_08.mdl",
"models/player/Group03/Male_09.mdl"
},
description = [[Vous faites partie d'un gang.]],
weapons = {},
command = "gangster",
max = 3,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
--[[---------------------------------------------------------------------------
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)


PS : Je c'est que certain job contienne des faute d'orthographe et certain on des skin de civil mais je conter règler se soucis une fois que mes job marcherait.

Merci
 
Discord d'entraide
Rejoignz-nous sur Discord