- Initiateur de la discussion
R
radiationmen
Geek
- Messages
- 23
- Score réaction
- 3
- Points
- 45
Bonjours mes jobs ne s'affichent pas dans le menu f4 de mon serveur Dark RP et il n'y aucune erreur lua dans la console
Eris F4 menu, mais aussi avec le f4 de base sa ma fait pareilKATTIX à dit:Tu peux me dire quel est le nom de ton f4 menu
Arkov Le Chauve à dit:jobs.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:
---------------------------------------------------------------------------]]
--[[ Generated using: DarkRP | Job Generator https://csite.io/tools/gmod-darkrp-job
--]]
TEAM_CITIZEN = DarkRP.createJob("Citoyen", { color = Color(84, 199, 43, 255), model = { "models/player/group01/female_01.mdl", "models/player/group01/female_03.mdl", "models/player/group01/female_04.mdl", "models/player/group01/female_06.mdl", "models/player/group01/female_05.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", "models/player/group02/male_02.mdl", "models/player/group02/male_04.mdl", "models/player/group02/male_06.mdl", "models/player/group02/male_08.mdl", "models/player/group03/male_04.mdl", "models/player/group03/male_05.mdl" }, description = [[Vous êtes un citoyen de cette magnifique ville]], weapons = {"weapon_fists", "keys", "weapon_physcannon", "gmod_tool", "idcard"}, command = "civil", max = 0, salary = 500, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Civil"
})
--[[ Generated using: DarkRP | Job Generator https://csite.io/tools/gmod-darkrp-job
--]]
TEAM_RAID = DarkRP.createJob("SWAT", { color = Color(0, 85, 255, 255), model = { "models/player/pmc_1/pmc__01.mdl", "models/player/pmc_1/pmc__02.mdl", "models/player/pmc_1/pmc__03.mdl", "models/player/pmc_1/pmc__04.mdl", "models/player/pmc_1/pmc__05.mdl", "models/player/pmc_1/pmc__10.mdl", "models/player/pmc_1/pmc__11.mdl", "models/player/pmc_1/pmc__12.mdl", "models/player/pmc_1/pmc__13.mdl", "models/player/pmc_2/pmc__01.mdl", "models/player/pmc_2/pmc__02.mdl", "models/player/pmc_2/pmc__03.mdl", "models/player/pmc_2/pmc__06.mdl", "models/player/pmc_2/pmc__08.mdl", "models/player/pmc_2/pmc__11.mdl", "models/player/pmc_2/pmc__12.mdl", "models/player/pmc_2/pmc__14.mdl", "models/player/pmc_3/pmc__01.mdl", "models/player/pmc_3/pmc__02.mdl", "models/player/pmc_3/pmc__03.mdl", "models/player/pmc_3/pmc__04.mdl", "models/player/pmc_3/pmc__05.mdl", "models/player/pmc_3/pmc__06.mdl", "models/player/pmc_3/pmc__07.mdl", "models/player/pmc_3/pmc__09.mdl", "models/player/pmc_3/pmc__10.mdl", "models/player/pmc_3/pmc__11.mdl", "models/player/pmc_3/pmc__13.mdl", "models/player/pmc_3/pmc__14.mdl", "models/player/pmc_4/pmc__01.mdl", "models/player/pmc_4/pmc__02.mdl", "models/player/pmc_4/pmc__01.mdl", "models/player/pmc_4/pmc__05.mdl", "models/player/pmc_4/pmc__06.mdl", "models/player/pmc_5/pmc__09.mdl", "models/player/pmc_5/pmc__01.mdl", "models/player/pmc_4/pmc__12.mdl", "models/player/pmc_4/pmc__11.mdl", "models/player/pmc_4/pmc__10.mdl", "models/player/pmc_4/pmc__09.mdl", "models/player/pmc_5/pmc__01.mdl", "models/player/pmc_5/pmc__03.mdl", "models/player/pmc_5/pmc__10.mdl", "models/player/pmc_5/pmc__11.mdl", "models/player/pmc_5/pmc__14.mdl", "models/player/pmc_6/pmc__01.mdl" }, description = [[Vous êtes un agent du SWAT l'unité d'élite de la police !]], weapons = {"weapon_fists", "keys", "weapon_physcannon", "gmod_tool", "idcard", "tfa_ins2_xm8","pass_dea","tfa_fas2_p226"}, command = "swat", max = 5, salary = 3000, admin = 0, vote = false, hasLicense = true, candemote = true, category = "Gouvernement", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(200) end, customCheck = function(ply) return CLIENT or table.HasValue({"VIP", "superadmin"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "Se metier est VIP",
})
--[[ Generated using: DarkRP | Job Generator https://csite.io/tools/gmod-darkrp-job
--]]
TEAM_COPS = DarkRP.createJob("Policier", { color = Color(0, 85, 255, 255), model = { "models/player/clannypolice/male_02.mdl", "models/player/clannypolice/male_04.mdl", "models/player/clannypolice/male_05.mdl", "models/player/clannypolice/male_06.mdl", "models/player/clannypolice/male_07.mdl", "models/player/clannypolice/male_08.mdl", "models/player/clannypolice/male_09.mdl" }, description = [[Vous êtes un agent de police et vous devez protéger tout ce petit monde !]], weapons = {"weapon_fists", "keys", "weapon_physcannon", "gmod_tool", "idcard", "tfa_fas2_p226", "pass_dea"}, command = "flic", max = 10, salary = 1250, admin = 0, vote = false, hasLicense = true, candemote = true, category = "Gouvernement", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end
})
--[[---------------------------------------------------------------------------
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)
Contacte-moi par msg privé je vais voir avec toi comment régler ton souci (le darkrpmodification n'a aucun secret pour moi donc ça ne devrais pas être compliqué d'identifier la source de l'erreur)radiationmen à dit:Eris F4 menu, mais aussi avec le f4 de base sa ma fait pareil
Je me permets de répondre à la place de @radiationmen son problème a apparemment été résolue, il me la dit sur discord.gogo17 à dit:Bonjour,
As-tu bien ta catégorie Civil, existe t-elle vraiment ? Si oui, pourrez tu m'envoyer les lignes de codes qui le confirment stp ?
Cordialement,
Gogo
Ok dac, merci de l'infoJo Ballas à dit:Je me permets de répondre à la place de @radiationmen son problème a apparemment été résolue, il me la dit sur discord.
merci de ne pas up des topic antérieur a plus d'1 ans , faite votre propre topic ou passer sur le discord demander de l'aide Join the mTxServ Discord Server!auragmod à dit:Salut, désolé de UP cette discussion mais mon serveur gmod a le mal problème les métiers ne s'affichent pas dans le f4