- Initiateur de la discussion
Mrswanno
Geek suprême
- Messages
- 146
- Score réaction
- 32
- Points
- 140
Bonjour,
Depuis maintenant quelques heures j'ai un soucis. Mes Jobs ne s'affichent plus dans la section "Jobs" et donc j'ai le job "Unamed".
Au début je n'avais mis que 2 Jobs (Admin et Condamnés) tout deux fonctionnait correctement. Mais dès que j'ai mis plusieurs jobs, au redémarrage du serveur, il n'y avait plus de jobs, que des bugs ! Et ce message d'erreur !
Merci de vos futurs réponses.
Depuis maintenant quelques heures j'ai un soucis. Mes Jobs ne s'affichent plus dans la section "Jobs" et donc j'ai le job "Unamed".
Au début je n'avais mis que 2 Jobs (Admin et Condamnés) tout deux fonctionnait correctement. Mais dès que j'ai mis plusieurs jobs, au redémarrage du serveur, il n'y avait plus de jobs, que des bugs ! Et ce message d'erreur !
Voici les jobs (Avant tout je précise que mon menu F4 est "EliteF4Menu" si besoin[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 40.
The best help I can give you is this:
There is an opening '{' bracket at line 23, but this bracket is never closed or not closed in time. It was expected to be closed before the 'category' at line 40.
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: ({)}.
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:
---------------------------------------------------------------------------]]
--[[ Generated using: DarkRP | Job Generator https://csite.io/tools/gmod-darkrp-job
--]]
TEAM_ADMIN = DarkRP.createJob("Administrateur", { color = Color(255, 0, 0, 255), model = { "models/captainbigbutt/vocaloid/miku_carbon.mdl", "models/player/anon/anon.mdl", "models/captainbigbutt/vocaloid/shadow_miku_append_competitive.mdl", "models/captainbigbutt/vocaloid/shadow_miku_append.mdl" }, description = [[Les administrateurs sont des dieux.]], weapons = {}, command = "Admin", max = 2, salary = 10000, admin = 2, vote = false, hasLicense = true, candemote = false category = "Autres"
})
TEAM_PRISON = DarkRP.createJob("Prisonnier", { color = Color(255, 104, 0, 255), model = { "models/JBarnes/Prisoners/JumpsuitM1.mdl", "models/JBarnes/Prisoners/JumpsuitM2.mdl", "models/JBarnes/Prisoners/JumpsuitM3.mdl", "#Male4models/JBarnes/Prisoners/JumpsuitM4.mdl", "models/JBarnes/Prisoners/JumpsuitM5.mdl", "models/JBarnes/Prisoners/JumpsuitM6.mdl", "models/JBarnes/Prisoners/JumpsuitM7.mdl", "models/JBarnes/Prisoners/JumpsuitM8.mdl", "models/JBarnes/Prisoners/JumpsuitM9.mdl" }, description = [[Vous êtes condamné en prison. Vous avez 2 Choix en tant que prisonnier, essayer de vous échapper ou vivre normalement en Prison.]], weapons = {}, command = "Prisonnier", max = 0, salary = 10, admin = 0, vote = false, hasLicense = false, candemote = false category = "Condamnés"
})
TEAM_DIRECTEUR = DarkRP.createJob("Directeur", { color = Color(133, 70, 70, 255), model = { "models/player/breen.mdl", "models/player/gman_high.mdl", "models/player/bobert/AOHarley.mdl", "models/gdub.mdl", "models/player/old_snake.mdl" }, description = [[Votre travail en tant que Directeur : gérer la prison.]], weapons = {"fas2_p226", "fas_m4a1", "fas2_dv2", "guigui_handcuffs", "guigui_handcuffs_lockpick", "stunstick", "unarrest_stick", "arrest_stick"}, command = "Directeur", max = 1, salary = 50, admin = 0, vote = true, hasLicense = false, candemote = false PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end category = "Autres"
})
TEAM_GERANT = DarkRP.createJob("Gérant de la sécurité ", { color = Color(28, 199, 23, 255), model = { "models/player/bobert/MKXCassie.mdl", "models/player/combine_plus.mdl", "models/player/R6S_Ash.mdl", "models/DPFilms/Metropolice/Playermodels/pm_badass_police.mdl" }, description = [[Votre rôle en tant que gérant de la sécurité est de vérifier que tout les employé de la sécurité font leur job correctement.]], weapons = {"fas2_famas", "fas2_deagle", "guigui_handcuffs", "guigui_handcuffs_lockpick", "arrest_stick", "unarrest_stick", "stunstick"}, command = "GERANT", max = 1, salary = 35, admin = 0, vote = true, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end category = "Autres"
})
TEAM_GARDIENCHEF = DarkRP.createJob("Gardien Chef", { color = Color(222, 88, 88, 255), model = {"models/DPFilms/Metropolice/Playermodels/pm_phoenix_police.mdl"}, description = [[Votre but en tant que Gardien Chef : Vous devez surveillez TOUTE l'enceinte de la prison, mais en priorité, surveillez si les gardiens d'intérieur et de cours font leur travail ]], weapons = {"fas2_p226", "fas2_", "fas2_pp19", "stunstick", "unarrest_stick", "arrest_stick", "guigui_handcuffs_lockpick", "guigui_handcuffs"}, command = "GARDIENCHEF", max = 1, salary = 20, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end category = "Gardiens" customCheck = function(ply) return ply:IsUserGroup("VIP") or ply:IsUserGroup("admin") or ply:IsUserGroup("superadmin") end, CustomCheckFailMsg = "Vous avez besoin d'être VIP pour avoir ce job."
})
TEAM_GARDIENSC = DarkRP.createJob("Gardien Sous-Chef", { color = Color(235, 216, 69, 255), model = {"models/DPFilms/Metropolice/Playermodels/pm_elite_police.mdl"}, description = [[Votre but en tant que Gardien Sous-Chef : est d'assister le Gardien Chef dans sa tâche (Surveillez toute l'enceinte, et surveiller si les Gardiens d'intérieur et de cours font leur travail correctement)]], weapons = {"fas2_p226", "fas2_pp19", "stunstick", "unarrest_stick", "arrest_stick", "guigui_handcuffs_lockpick", "guigui_handcuffs", "fas2_mp5k"}, command = "GARDIENSC", max = 1, salary = 15, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end category = "Gardiens" customCheck = function(ply) return ply:IsUserGroup("VIP") or ply:IsUserGroup("admin") or ply:IsUserGroup("superadmin") end, CustomCheckFailMsg = "Vous avez besoin d'être VIP pour avoir ce job."
})
TEAM_CHIEN = DarkRP.createJob("Chien d'attaque", { color = Color(100, 62, 184, 255), model = {"models/doge_player/doge_player.mdl"}, description = [[Votre but en tant que chien d'attaque est d'être avec son maître ou patrouiller dans la prison.]], weapons = {"weapon_pet"}, command = "Chien", max = 2, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end category = "Autres" customCheck = function(ply) return ply:IsUserGroup("VIP") or ply:IsUserGroup("admin") or ply:IsUserGroup("superadmin") end, CustomCheckFailMsg = "Vous avez besoin d'être VIP pour avoir ce job."
})
TEAM_GARDIENC = DarkRP.createJob("Gardien de Cours", { color = Color(28, 102, 22, 255), model = { "models/player/combine_soldier_prisonguard.mdl", "models/player/combine_soldier.mdl" "models/DPFilms/Metropolice/Playermodels/pm_hl2beta_police.mdl" }, description = [[Votre rôle en tant que Gardien de cours est de surveiller en dehors du bâtiment de la prison. (Pas l'enceinte) Vous allez donc patrouiller dehors]], weapons = {"fas2_m1911", "stunstick", "unarrest_stick", "arrest_stick", "guigui_handcuffs_lockpick", "guigui_handcuffs"}, command = "GardienC", max = 8, salary = 10, admin = 0, vote = false, hasLicense = false, candemote = false PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end category = "Gardiens"
})
TEAM_GARDIENI = DarkRP.createJob("Gardien d’intérieur ", { color = Color(0, 132, 255, 255), model = { "models/player/police.mdl", "models/player/police_fem.mdl" }, description = [[Votre but en tant que Gardien d'intérieur : Il faut surveiller l’intérieur du bâtiment, et surveiller les prisonniers, et il faudrat patrouiller. ]], weapons = {"guigui_handcuffs", "guigui_handcuffs_lockpick", "arrest_stick", "unarrest_stick", "stunstick", "fas2_m1911"}, command = "GARDIENI", max = 8, salary = 10, admin = 0, vote = false, hasLicense = false, candemote = false PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end category = "Gardiens"
})
TEAM_CHEFRAID = DarkRP.createJob("Chef du RAID", { color = Color(212, 197, 126, 255), model = {"models/gign remasteredhd.mdl"}, description = [[Votre but en tant que Chef du RAID est de diriger vos troupes pour retrouver les prisonniers évadé]], weapons = {"fas2_sg552", "fas2_p226", "fas2_ifak", "guigui_handcuffs_lockpick", "guigui_handcuffs", "stunstick"}, command = "CHEFRAID", max = 1, salary = 40, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(150) ply:SetHealth(150) ply:SetArmor(100) end category = "RAID" customCheck = function(ply) return ply:IsUserGroup("VIP") or ply:IsUserGroup("admin") or ply:IsUserGroup("superadmin") end, CustomCheckFailMsg = "Vous avez besoin d'être VIP pour avoir ce job."
})
TEAM_RAID = DarkRP.createJob("RAID", { color = Color(232, 145, 94, 255), model = {"models/player/r6s_doc.mdl"}, description = [[Votre but en tant que membre du RAID est de chercher les prisonniers évadés]], weapons = {"fas2_m3", "fas2_g36c", "stunstick", "guigui_handcuffs", "guigui_handcuffs_lockpick"}, command = "RAID", max = 6, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(150) ply:SetHealth(100) ply:SetArmor(100) end category = "RAID"
})
TEAM_TELITE = DarkRP.createJob("Tireur d'élite", { color = Color(26, 203, 222, 255), model = {"models/MSF/soldier2.mdl"}, description = [[Votre but en tant que tireur d'élite est de tirer sur ceux qui s'évadent.]], weapons = {"fas2_m24", "fas2_m21", "fas2_p226", "stunstick", "guigui_handcuffs_lockpick", "guigui_handcuffs"}, command = "TELITE", max = 4, salary = 45, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end category = "Tireurs d'élite"
})
TEAM_CHEFTELITE = DarkRP.createJob("Chef Tireur d'élite", { color = Color(26, 93, 222, 255), model = { "models/player/hl2survivor/combine_sniper_female.mdl", "models/player/combine_super_soldier.mdl" }, description = [[Votre but en tant que chef tireur d'élite est de tirer sur ceux qui s'évadent, mais aussi gérer vos troupes.]], weapons = {"stunstick", "guigui_handcuffs_lockpick", "guigui_handcuffs", "fas2_m82", "fas2_sr25", "fas2_deagle", "fas2_machete"}, command = "CHEFTELITE", max = 1, salary = 50, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end category = "Tireurs d'élite" customCheck = function(ply) return ply:IsUserGroup("VIP") or ply:IsUserGroup("admin") or ply:IsUserGroup("superadmin") end, CustomCheckFailMsg = "Vous avez besoin d'être VIP pour avoir ce job."
})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_PRISON
--[[---------------------------------------------------------------------------