Bug de jobs

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

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
Bonjour , moi et un ami avons ouvert un serveur , on a configurer quelque job , mais ils n'apparaissent pas en jeux , nous les avons configurer dans le dossier : srcds/garrysmod/addons/darkrpmodificationmaster/darkrp_customthings/jobs.lua
Voici le fichier .lua ( en tout cas sont contenu ) :
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_Citoyen = DarkRP.createJob("Citoyen", { color = Color(17, 235, 13, 255), model = { "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_08.mdl", "models/player/zelpa/male_01.mdl", "models/player/zelpa/male_02.mdl", "models/player/zelpa/male_03.mdl", "models/player/zelpa/male_04.mdl", "models/player/zelpa/male_05.mdl", "models/player/zelpa/male_06.mdl", "models/player/zelpa/male_07.mdl", "models/player/zelpa/male_08.mdl", "models/player/zelpa/male_09.mdl", "models/player/zelpa/male_10.mdl", "models/player/zelpa/male_11.mdl", "models/player/zelpa/female_01.mdl", "models/player/zelpa/female_02.mdl", "models/player/zelpa/female_03.mdl", "models/player/zelpa/female_04.mdl", "models/player/zelpa/female_05.mdl", "models/player/zelpa/female_06.mdl", "models/player/zelpa/female_07.mdl", "models/player/zelpa/female_01_b.mdl", "models/player/zelpa/female_02_b.mdl", "models/player/zelpa/female_03_b.mdl", "models/player/zelpa/female_04_b.mdl", "models/player/zelpa/female_05_b.mdl", "models/player/zelpa/female_06_b.mdl", "models/player/zelpa/female_07_b.mdl", }, description = [[Vous devez survivre face aux zombies]], weapons = {}, command = "Citoyen", max = 0, salary = 50, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Marchand = DarkRP.createJob("Marchand", { color = Color(17, 235, 13, 255), model = {"models/joshua_graham/joshua_graham_pm.mdl"}, description = [[Équiper touts les citoyens, les soldats et les ennemies, votre but est de vous faire de l'argent.]], weapons = {}, command = "Marchand", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Cuisinier = DarkRP.createJob("Cuisinier", { color = Color(17, 235, 13, 255), model = {"models/player/mossman.mdl"}, description = [[Donner de la nourriture aux citoyens pour leur donner de la force.]], weapons = {}, command = "Cuisinier", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Médecin = DarkRP.createJob("Médecin", { color = Color(17, 235, 13, 255), model = {"models/player/magnusson.mdl"}, description = [[Soigner les citoyens pour qu'ils puissent restaient en vie.]], weapons = {"med_kit"}, command = "Médecin", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Gardiendelaville = DarkRP.createJob("Gardien de la ville", { color = Color(17, 235, 13, 255), model = {"models/player/leet.mdl"}, description = [[Vous protéger les citoyens seulement dans la ville.]], weapons = {"fas2_deagle"}, command = "Gardien de la ville", max = 5, salary = 120, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(25) end
})
TEAM_Gouverneur = DarkRP.createJob("Gouverneur", { color = Color(17, 235, 13, 255), model = {"models/player/breen.mdl"}, description = [[Vous gouverner la ville pour que tout ce passe bien.]], weapons = {"fas2_glock20"}, command = "Gouverneur", max = 1, salary = 150, admin = 0, vote = true, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_Gardeducorp = DarkRP.createJob("Garde du corp", { color = Color(17, 235, 13, 255), model = {"models/player/guerilla.mdl"}, description = [[Vous devez protéger un maximum le gouverneur.]], weapons = {"fas2_glock20"}, command = "Gardeducorp", max = 5, salary = 125, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(25) end
})
TEAM_recrueusarmy = DarkRP.createJob("Recrue - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/Srgt.Shotup"}, description = [[Vous êtes une recrue de la U.S ARMY.]], weapons = {"fas2_glock20"}, command = "recrueusarmy", max = 10, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_regimentsniper = DarkRP.createJob("Régiment sniper - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/riot.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_m21"}, command = "SniperUsarmy", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end
})
TEAM_AgentdelaUSARMY = DarkRP.createJob("Agent - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/urban.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_deagle"}, command = "agentusarmy", max = 5, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end
})
TEAM_regimentassault = DarkRP.createJob("Régiment assault - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/swat.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_famas"}, command = "AsaultUsarmy", max = 1, salary = 142, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end
})
TEAM_recrueari = DarkRP.createJob("Recrue - A.R.I", { color = Color(235, 199, 13, 255), model = {"models/mfc_new_heavy_npc.mdl", "models/MFC_New_Heavy.mdl", "models/mfc_new_npc.mdl", "models/mfc_new.mdl"}, description = [[Vous êtes une recrue de la A.R.I]], weapons = {"fas2_glock20"}, command = "recrueari", max = 10, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_agentari = DarkRP.createJob("Agent - A.R.I", { color = Color(235, 199, 13, 255), model = {""}, description = [[Vous êtes un haut grader de la A.R.I]], weapons = {"fas2_deagle"}, command = "agentari", max = 5, salary = 124, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end
})
TEAM_commandoassault = DarkRP.createJob("Commando Assault - A.R.I", { color = Color(235, 199, 13, 255), model = {"models/player/auditor/r6s/thatcher.mdl"}, description = [[Vous êtes un au grader de la A.R.I]], weapons = {"fas2_famas"}, command = "assaultari", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end
})
TEAM_commandosniper = DarkRP.createJob("Commando Sniper - A.R.I", { color = Color(235, 199, 13, 255), model = {"models/player/US_Sniper_Aftermath.mdl"}, description = [[Vous êtes un au grader de la A.R.I]], weapons = {"fas2_m21"}, command = "sniperari", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end
})
TEAM_peste = DarkRP.createJob("Projet Peste", { color = Color(235, 199, 13, 255), model = {"models/player/plague_doktor/COMBINE_Plague_Doktor.mdl"}, description = [[Vous êtes le projets Peste , créer par les A.R.I , vous êtes grand et fort , vous vous battez uniquement au poings et a la grosse sulfateuse .Personne ne connait votre vrai nature .]], weapons = {"fas2_m60e3, m9k_fist, m9k_fists}, command = "peste", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(300) ply:SetHealth(300) ply:SetArmor(200)
end
})
TEAM_ARIGen = DarkRP.createJob("Général de l'ARI", { color = Color(235, 199, 13, 255), model = {"models/player/big_boss.mdl", "models/player/big_boss.mdl", "models/player/big_boss3.mdl", "models/player/big_boss4.mdl", "models/player/big_boss5.mdl", "models/player/big_boss6.mdl", "models/player/big_boss7.mdl"}, description = [[Vous êtes le général de l'ARI , son Fondateur , gouverner vos troupes et écrasez vos ennemis ,]] weapons = {"fas2_sks, fas2_machete, fas2_galil}, command = "ARIGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150)
end})
--[[ Generated using: DarkRP | Job Generator https://csite.io/tools/gmod-darkrp-job
--]]
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_Citoyen
--[[---------------------------------------------------------------------------
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_recrueari] = true, [TEAM_agentari] = true, [TEAM_commandoassault] = true, [TEAM_commandosniper] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB).
Le problème c'est que une fois en jeux , on arrive avec le job "Unassigned" et il n'y a aucun autre job de disponible .
On ne sait pas régler le problème , pouvez vous nous aider s'il vous plait , Merci d'avance

Cordialement The Shark !
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
Je pense que ça vient d'ici :

Code:
PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
A "end" il faut mettre une virgule comme ceci :

Code:
PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end,
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
J'ai testé , sa n'a pas marché , il me parle d'une lua error , je l'ai corrigé et je tient ou courant
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
Requinou à dit:
J'ai testé , sa n'a pas marché , il me parle d'une lua error , je l'ai corrigé et je tient ou courant
Si vous avez une erreur faudrait nous la passer l'erreur afin qu'on puisse localiser plus vite le problème :)
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
Je n'ai pas réussi a régler le problème . Il me dit ça :

[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 358.
The best help I can give you is this:

There is an opening '{' bracket at line 354, but this bracket is never closed or not closed in time. It was expected to be closed before the 'weapons' at line 358.

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: ({)}.
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
Requinou à dit:
Je n'ai pas réussi a régler le problème . Il me dit ça :

[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 358.
The best help I can give you is this:

There is an opening '{' bracket at line 354, but this bracket is never closed or not closed in time. It was expected to be closed before the 'weapons' at line 358.

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: ({)}.
Trouvé c'est à la Team ARIgen ( vers la fin ), vous avez inversé le symbole pour faire des commentaires et la virgule :

Code:
description = [[Vous êtes le général de l'ARI , son Fondateur , gouverner vos troupes et écrasez vos ennemis ,]]
Il faut juste remettre comme ça :

Code:
description = [[Vous êtes le général de l'ARI , son Fondateur , gouverner vos troupes et écrasez vos ennemis ]],
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
mon code est définitivement lua error land , cette fois il me dit ça :

[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 372.
The best help I can give you is this:

Right before the ')', Lua encountered something it could not make sense of.

Hints:
- Did you forget something here? (Perhaps a closing bracket)
- Is it a typo?
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
Requinou à dit:
mon code est définitivement lua error land , cette fois il me dit ça :

[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 372.
The best help I can give you is this:

Right before the ')', Lua encountered something it could not make sense of.

Hints:
- Did you forget something here? (Perhaps a closing bracket)
- Is it a typo?
Ah je viens d'en trouver une autre à TEAM_peste :

Code:
weapons = {"fas2_sks, fas2_machete, fas2_galil},
Remplacez par :

Code:
weapons = {"fas2_sks, fas2_machete, fas2_galil"},
Et je pense que ça devrait être bon
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
j'ai testé , sa ne marche pas , selon la console , l'erreur est au alentours de la ligne 372
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
Requinou à dit:
j'ai testé , sa ne marche pas , selon la console , l'erreur est au alentours de la ligne 372
Essayez de remplacer vos 2 jobs à la fin ( TEAM_peste, TEAM_ARIGen ) par ceci :

Code:
TEAM_peste = DarkRP.createJob("Projet Peste", { color = Color(235, 199, 13, 255), model = {"models/player/plague_doktor/COMBINE_Plague_Doktor.mdl"}, description = [[Vous êtes le projets Peste , créer par les A.R.I , vous êtes grand et fort , vous vous battez uniquement au poings et a la grosse sulfateuse .Personne ne connait votre vrai nature .]], weapons = {"fas2_m60e3, m9k_fist, m9k_fists"}, command = "peste", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(300) ply:SetHealth(300) ply:SetArmor(200)
end,
})
TEAM_ARIGen = DarkRP.createJob("Général de l'ARI", { color = Color(235, 199, 13, 255), model = {"models/player/big_boss.mdl", "models/player/big_boss.mdl", "models/player/big_boss3.mdl", "models/player/big_boss4.mdl", "models/player/big_boss5.mdl", "models/player/big_boss6.mdl", "models/player/big_boss7.mdl"}, description = [[Vous êtes le général de l'ARI , son Fondateur , gouverner vos troupes et écrasez vos ennemis]], weapons = {"fas2_sks, fas2_machete, fas2_galil"}, command = "ARIGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) end,
})
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
Je l'ai fait , mais l'erreur maintenant vien d'une autre ligne :

There is 1 Lua problem!
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 396.
The best help I can give you is this:

Right before the 'end of the file', Lua expected to read a '<name>', but it didn't.

Hints:
- Did you forget a keyword?
- Did you forget a comma?

------- End of Simplerr error -------
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
Requinou à dit:
Je l'ai fait , mais l'erreur maintenant vien d'une autre ligne :

There is 1 Lua problem!
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 396.
The best help I can give you is this:

Right before the 'end of the file', Lua expected to read a '<name>', but it didn't.

Hints:
- Did you forget a keyword?
- Did you forget a comma?

------- End of Simplerr error -------
A la fin, ici :

Code:
DarkRP.addHitmanTeam(TEAM_MOB).
Vous avez rajouté un point alors qu'il faut que ce soit comme ceci :

Code:
DarkRP.addHitmanTeam(TEAM_MOB)
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
SA MARCHE !!! Mille merci a toi de m'avoir aidé , sans toi je serai coincé . Mille Merci .
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
Requinou à dit:
SA MARCHE !!! Mille merci a toi de m'avoir aidé , sans toi je serai coincé . Mille Merci .
Pas de soucis :)
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
Par contre je dois config les armes :/
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
Requinou à dit:
Par contre je dois config les armes :/
N'hésitez pas à refaire un post si vous avez des problèmes à ce niveau là ( erreur(s), ou question(s) ) :)
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
Merci .
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
Juste , je n'arrive pas a mettre plusieur arme , comment on doit le mettre précisement ?
Personnelement j'ai mis ça :
Code:
 weapons = {"fas2_m60e3,m9k_fists"},
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
Requinou à dit:
Juste , je n'arrive pas a mettre plusieur arme , comment on doit le mettre précisement ?
Personnelement j'ai mis ça :
weapons = {"fas2_m60e3,m9k_fists"},
Il faut plutôt faire comme ceci :

weapons = {"fas2_m60e3", "m9k_fists"},
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
ah ok merci encore une fois .
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
Et tu sais comment changer la taille et la vitesse de sprint ?
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
Requinou à dit:
Et tu sais comment changer la taille et la vitesse de sprint ?
En rajoutant des fonctions sur vos jobs, comme ceci :

PlayerSpawn = function(ply)

ply:SetModelScale(LaTailleQuiVousConvient)
ply:SetRunSpeed(LeNombreQueVousVoulez)

end,
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
Merci encore une fois .
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
C'est quoi la vitesse de base ? j'ai mis 2 de speed et j'avance pas en sprintant . et un de mes skin a les bras écartés en mode j'ai pas chargé .
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
Requinou à dit:
C'est quoi la vitesse de base ? j'ai mis 2 de speed et j'avance pas en sprintant . et un de mes skin a les bras écartés en mode j'ai pas chargé .
La vitesse de base est 200 si je me souviens bien et pour les bras écartés si c'est un skin custom c'est surement que vous n'avez pas pris le bon chemin d'accès
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
J'ai un autre bug , je vous donne directement mon code et la message de lua 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_Citoyen = DarkRP.createJob("Citoyen", { color = Color(17, 235, 13, 255), model = { "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_08.mdl", "models/player/zelpa/male_01.mdl", "models/player/zelpa/male_02.mdl", "models/player/zelpa/male_03.mdl", "models/player/zelpa/male_04.mdl", "models/player/zelpa/male_05.mdl", "models/player/zelpa/male_06.mdl", "models/player/zelpa/male_07.mdl", "models/player/zelpa/male_08.mdl", "models/player/zelpa/male_09.mdl", "models/player/zelpa/male_10.mdl", "models/player/zelpa/male_11.mdl", "models/player/zelpa/female_01.mdl", "models/player/zelpa/female_02.mdl", "models/player/zelpa/female_03.mdl", "models/player/zelpa/female_04.mdl", "models/player/zelpa/female_05.mdl", "models/player/zelpa/female_06.mdl", "models/player/zelpa/female_07.mdl", "models/player/zelpa/female_01_b.mdl", "models/player/zelpa/female_02_b.mdl", "models/player/zelpa/female_03_b.mdl", "models/player/zelpa/female_04_b.mdl", "models/player/zelpa/female_05_b.mdl", "models/player/zelpa/female_06_b.mdl", "models/player/zelpa/female_07_b.mdl" }, description = [[Vous devez survivre face aux zombies]], weapons = {}, command = "Citoyen", max = 0, salary = 50, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Marchand = DarkRP.createJob("Marchand", { color = Color(17, 235, 13, 255), model = {"models/joshua_graham/joshua_graham_pm.mdl"}, description = [[Équiper touts les citoyens, les soldats et les ennemies, votre but est de vous faire de l'argent.]], weapons = {}, command = "Marchand", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Cuisinier = DarkRP.createJob("Cuisinier", { color = Color(17, 235, 13, 255), model = {"models/fearless/chef1.mdl", "models/fearless/chef2.mdl"}, description = [[Donner de la nourriture aux citoyens pour leur donner de la force.]], weapons = {}, command = "Cuisinier", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Médecin = DarkRP.createJob("Médecin", { color = Color(17, 235, 13, 255), model = {"medic1", "medic2", "medic3", "medic4", "medic5", "medic6", "medic7", "medic8", "medic9", "medic10", "medic11", "medic12", "medic13", "medic14", "medic15"}, description = [[Soigner les citoyens pour qu'ils puissent rester en vie.]], weapons = {"med_kit"}, command = "Médecin", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Gardiendelaville = DarkRP.createJob("Gardien de la ville", { color = Color(17, 235, 13, 255), model = {"models/player/arnold_schwarzenegger.mdl"}, description = [[Vous protéger les citoyens seulement dans la ville.]], weapons = {"fas2_deagle"}, command = "Gardien de la ville", max = 5, salary = 120, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(25) end
})
TEAM_Maire = DarkRP.createJob("Maire", { color = Color(17, 235, 13, 255), model = {"models/player/breen.mdl"}, description = [[Vous gouverner la ville pour que tout ce passe bien.]], weapons = {"fas2_deagle"}, command = "Maire", max = 1, salary = 150, admin = 0, vote = true, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_Gardeducorp = DarkRP.createJob("Garde du corp", { color = Color(17, 235, 13, 255), model = {"models/player/portal/Male_01_security.mdl", "models/player/portal/Male_01_security.mdl", "models/player/portal/Male_02_security.mdl", "models/player/portal/Male_03_security.mdl", "models/player/portal/Male_04_security.mdl", "models/player/portal/Male_05_security.mdl", "models/player/portal/Male_06_security.mdl", "models/player/portal/Male_07_security.mdl", "models/player/portal/Male_08_security.mdl", "models/player/portal/Male_09_security.mdl"}, description = [[Vous devez protéger un maximum le Maire.]], weapons = {"fas2_deagle"}, command = "Gardeducorp", max = 5, salary = 125, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(25) end
})
TEAM_recrueusarmy = DarkRP.createJob("Recrue - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/Srgt.Shotup"}, description = [[Vous êtes une recrue de la U.S ARMY.]], weapons = {"fas2_glock20"}, command = "recrueusarmy", max = 10, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_regimentsniper = DarkRP.createJob("Régiment sniper - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/riot.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_m21"}, command = "SniperUsarmy", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Sniper de l'U.S Army est mort !") end
})
TEAM_agentdelausarmy = DarkRP.createJob("Agent - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/urban.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_deagle"}, command = "agentdelausarmy", max = 5, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Un Agent de l'U.S Army est mort !") end
})
TEAM_regimentassault = DarkRP.createJob("Régiment assault - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/swat.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_famas"}, command = "AsaultUsarmy", max = 1, salary = 142, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Regiement d'assault de l'U.S Army est mort !") end
})
TEAM_recrueari = DarkRP.createJob("Recrue - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/mfc_new_heavy_npc.mdl", "models/MFC_New_Heavy.mdl", "models/mfc_new_npc.mdl", "models/mfc_new.mdl"}, description = [[Vous êtes une recrue de la A.R.I]], weapons = {"fas2_glock20"}, command = "recrueari", max = 10, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_agentari = DarkRP.createJob("Agent - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/minson97/bo2/seal_masked.mdl",
"models/minson97/bo2/seal.mdl"}, description = [[Vous êtes un haut grader de la A.R.I]], weapons = {"fas2_deagle"}, command = "agentari", max = 5, salary = 124, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Un Agent de l'A.R.I est mort !") end
})
TEAM_commandoassault = DarkRP.createJob("Commando Assault - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/player/auditor/r6s/thatcher.mdl"}, description = [[Vous êtes un au grader de la A.R.I]], weapons = {"fas2_famas"}, command = "assaultari", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Commande Assault A.R.I est mort !") end
})
TEAM_commandosniper = DarkRP.createJob("Commando Sniper - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/player/US_Sniper_Aftermath.mdl"}, description = [[Vous êtes un au grader de la A.R.I]], weapons = {"fas2_m21"}, command = "sniperari", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Commando Sniper de l'A.R.I est mort !") end
})
TEAM_peste = DarkRP.createJob("Projet Peste", { color = Color(255, 0, 0, 255), model = {"models/player/plague_doktor/PLAYER_Plague_Doktor.mdl"}, description = [[Vous êtes le projets Peste , créer par les A.R.I , vous êtes grand et fort , vous vous battez uniquement au poings et a la grosse sulfateuse .Personne ne connait votre vrai nature .]], weapons = {"weapon_mini_gun_v3", "m9k_fists"}, command = "peste", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(300) ply:SetHealth(300) ply:SetArmor(200) ply:SetModelScale(1.15) ply:SetRunSpeed(350) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Projet Peste est mort !!!")
end
})
TEAM_ARIGen = DarkRP.createJob("Général de l'ARI", { color = Color(255, 0, 0, 255), model = {"models/player/big_boss.mdl", "models/player/big_boss.mdl", "models/player/big_boss3.mdl", "models/player/big_boss4.mdl", "models/player/big_boss5.mdl", "models/player/big_boss6.mdl", "models/player/big_boss7.mdl"}, description = [[Vous êtes le général de l'ARI , son Fondateur , gouverner vos troupes et écrasez vos ennemis]], weapons = {"fas2_sks", "fas2_wakizashi", "fas2_rk95"}, command = "ARIGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Général de l'A.R.I est mort !") end
})
TEAM_USARMYGen = DarkRP.createJob("Général de l'US Army", { color = Color(235, 199, 13, 255), model = {"models/player/riot.mdl"}, description = [[Vous êtes le général de l'US ARMY , gouverner vos troupes et écrasez vos ennemis]], weapons = {"fas2_sks", "fas2_wakizashi", "fas2_rk95"}, command = "USGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Général de l'U.S Army est mort !!!") end
})
TEAM_robot = DarkRP.createJob("Projet Robot", { color = Color(235, 199, 13, 255), model = {"models/Killzone Mercenary/Helghast_Police_Trooper/Police_Trooper.mdl"}, description = [[Vous êtes le projets Robot , créer par l'U.S Army, vous êtes grand et fort , vous vous battez uniquement au poings et a la grosse sulfateuse .Vous êtes un robot sans aucun sentiments .]], weapons = {"weapon_mini_gun_v3", "m9k_fists"}, command = "robot", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(500) ply:SetHealth(500) ply:SetArmor(250) ply:SetModelScale(1.15) ply:SetRunSpeed(100) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Projet Robot est mort !!!")
end
})
TEAM_CommandoInfiltre = DarkRP.createJob("Commando Espion A.R.I", { color = Color(255, 0, 0, 255), model = {"models/blacklist/spy1.mdl"}, description = [[Vous êtes le Commando Espion de l'A.R.I , camouflez vous pour éliminez vos ennemies , grace a votre modules d'invisibilité , vous êtes l'as de l'infiltration]], weapons = {"weapon_camo", "fas2_wakizashi", "fas2_ump45"}, command = "ARIEpion", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) ply:SetRunSpeed(250) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Commando Espion de l'A.R.I est mort !") end
})
--[[ Generated using: DarkRP | Job Generator https://csite.io/tools/gmod-darkrp-job
--]]
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_Citoyen
--[[---------------------------------------------------------------------------
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_recrueari] = true, [TEAM_agentari] = true, [TEAM_commandoassault] = true, [TEAM_commandosniper] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_ARIGen)
Lua Error :

Code:
There is 1 Lua problem! 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 234.
The best help I can give you is this:
Right before the '}', Lua encountered something it could not make sense of.
Hints: - Did you forget something here? (Perhaps a closing bracket) - Is it a typo?
------- End of Simplerr error -------
 
Discord d'entraide
Rejoignz-nous sur Discord