Problème de textures des skins Gmod et emplois

  • Initiateur de la discussion
blowjulien

blowjulien

Bambi
Messages
14
Score réaction
0
Points
40
Bonjour ,

J'ai essayé d'ajouter des jobs(emplois)sur Gmod en DarkRp puis j'ai fais un redémarrage puis cela me fait sa :
SSSS.PNG

Puis les emplois :
Sssssss.PNG

La config des Jobs :

Jobs :
--[[---------------------------------------------------------------------------
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 jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_TUEURENSERIE = DarkRP.createJob("Tueur en Série", {
color = Color(232, 17, 17, 255),
model = {""models/player/gman_high.mdl""},
description = [[Tue des personnes ! Mou ah Ah Ah]],
weapons = {"weapon_mac10"},
command = "Tueurenserie",
max = 10,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_BANQUIER = DarkRP.createJob("Banquier", {
color = Color(50, 48, 48, 255),
model = {"models/player/Group01/male_04.mdl"},
description = [[Occupe toi de la tune !]],
weapons = {"weapon_mp5"},
command = "Banquier",
max = 5,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_MEDECIN = DarkRP.createJob("Médecin", {
color = Color(31, 163, 84, 255),
model = {"models/player/Group03m/male_01.mdl","models/player/Group03m/.mdl", "models/player/Group03m/male_03.mdl","models/player/Group03m/male_04.mdl", "models/player/Group03m/male_05.mdl", "models/player/Group03m/male_06.mdl", "models/player/Group03m/male_07.mdl"},
description = [[Soigne vite les gens !]],
weapons = {"weapon_medikit"},
command = "Medecin",
max = 7,
salary = 120,
admin = 0,

Jobrelated :

-- 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("Citizen", {
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 = [[Tu est un Citoyen.]],
weapons = {},
command = "citizen",
max = 10,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizen",
})

TEAM_TUEURENSERIE = DarkRP.createJob("Tueur en Série", {
color = Color(232, 17, 17, 255),
model = {""models/player/gman_high.mdl""},
description = [[Tue des personnes ! Mou ah Ah Ah]],
weapons = {"weapon_mac10"},
command = "Tueurenserie",
max = 10,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_BANQUIER = DarkRP.createJob("Banquier", {
color = Color(50, 48, 48, 255),
model = {"models/player/Group01/male_04.mdl"},
description = [[Occupe toi de la tune !]],
weapons = {"weapon_mp5"},
command = "Banquier",
max = 5,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_MEDECIN = DarkRP.createJob("Médecin", {
color = Color(31, 163, 84, 255),
model = {"models/player/Group03m/male_01.mdl","models/player/Group03m/.mdl", "models/player/Group03m/male_03.mdl","models/player/Group03m/male_04.mdl", "models/player/Group03m/male_05.mdl", "models/player/Group03m/male_06.mdl", "models/player/Group03m/male_07.mdl"},
description = [[Soigne vite les gens !]],
weapons = {"weapon_medikit"},
command = "Medecin",
max = 7,
salary = 120,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

TEAM_VOLEUR = DarkRP.createJob("VOLEUR", {
color = Color(0, 0, 0, 255),
model = {"models/player/odessa.mdl"},
description = [[Vole des objets]],
weapons = {},
command = "Voleur",
max = 5,
salary = 30,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

end
-- Compatibility for when default teams are disabled
TEAM_CITIZEN = TEAM_CITIZEN or -1
TEAM_POLICE = TEAM_POLICE or -1
TEAM_GANG = TEAM_GANG or -1
TEAM_MOB = TEAM_MOB or -1
TEAM_GUN = TEAM_GUN or -1
TEAM_MEDIC = TEAM_MEDIC or -1
TEAM_CHIEF = TEAM_CHIEF or -1
TEAM_MAYOR = TEAM_MAYOR or -1
TEAM_HOBO = TEAM_HOBO or -1



AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("Gundealer only", TEAM_GUN)



DarkRP.createAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
DarkRP.createAgenda("Police agenda", {TEAM_MAYOR, TEAM_CHIEF}, {TEAM_POLICE})



DarkRP.createGroupChat(function(ply) return ply:isCP() end)
DarkRP.createGroupChat(TEAM_MOB, TEAM_GANG)
DarkRP.createGroupChat(function(listener, ply) return not ply or ply:Team() == listener:Team() end)


GAMEMODE.DefaultTeam = TEAM_CITIZEN


GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}


DarkRP.addHitmanTeam(TEAM_MOB)


DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})


DarkRP.createCategory{
name = "Citizen",
categorises = "jobs",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 100,
}

DarkRP.createCategory{
name = "CivilProtection",
categorises = "jobs",
startExpanded = true,
color = Color(25, 25, 170, 255),
canSee = fp{fn.Id, true},
sortOrder = 101,
}

DarkRP.createCategory{
name = "Gangsters",
categorises = "jobs",
startExpanded = true,
color = Color(75, 75, 75, 255),
canSee = fp{fn.Id, true},
sortOrder = 101,
}

DarkRP.createCategory{
name = "Other",
categorises = "jobs",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 255,
}
 
Pure Code

Pure Code

Geek
Messages
180
Score réaction
10
Points
85
blowjulien à dit:
model = {""models/player/gman_high.mdl""},
il y a deux fois "", ça créé des erreurs, aussi enlève TOUTS les accents !!
 
  • Initiateur de la discussion
blowjulien

blowjulien

Bambi
Messages
14
Score réaction
0
Points
40
Merci mais sa ne marche toujours pas
 
Pure Code

Pure Code

Geek
Messages
180
Score réaction
10
Points
85
Il faut rajouter une catégorie pour les derniers jobs
 
  • Initiateur de la discussion
blowjulien

blowjulien

Bambi
Messages
14
Score réaction
0
Points
40
Ok sa ne marche toujours pas
 
Pure Code

Pure Code

Geek
Messages
180
Score réaction
10
Points
85
 
  • Initiateur de la discussion
blowjulien

blowjulien

Bambi
Messages
14
Score réaction
0
Points
40
Ok thx mais sa ne marche toujours pas les metiers Au pire tu peut m'envoyer les metiers deja fait plz
P-S: J'ai rajouter le metier policier
Alors ??
 
Dernière édition:
Razors

Razors

Geek
Messages
31
Score réaction
0
Points
55
si tu met pas de categorie sa va tout le temps te faire sa
 
Discord d'entraide
Rejoignz-nous sur Discord