problème de job

  • Initiateur de la discussion Lafougere
  • Date de début
  • Initiateur de la discussion
L

Lafougere

Geek
Messages
29
Score réaction
0
Points
65
bonjour,bonsoirs j'ai un problème de métier de base je veux modifier le nom,model...
mais quand je reboot,je rejoins sa rien changer.

TEAM_POLICE = DarkRP.createJob("police", {
color = Color(25, 25, 170, 255),
model = {"models/nypd/male_02.mdl", "models/nypd/male_04.mdl","models/nypd/male_05.mdl","models/nypd/male_06.mdl","models/nypd/male_07.mdl","models4/nypd/male_08.mdl","models/nypd/male_09.mdl"},
description = [[]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 4,
salary = GAMEMODE.Config.normalsalary * 1.45,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
})

TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(150, 20, 20, 255),
model = "models/characters/gallaha.mdl",
description = [[]],
weapons = {},
command = "mayor",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
candemote = true,
category = "Civil Protection",
})

TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
color = Color(20, 20, 255, 255),
model = "models/dow/02.mdl",
description = [[]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
command = "chief",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.67,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
NeedToChangeFrom = TEAM_POLICE,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
})
 
  • Banni
EviLKniGht62

EviLKniGht62

Psychopathe
Messages
2 133
Score réaction
203
Points
280
Enleve la parentese apres pistol
 
  • Initiateur de la discussion
L

Lafougere

Geek
Messages
29
Score réaction
0
Points
65
  • Banni
EviLKniGht62

EviLKniGht62

Psychopathe
Messages
2 133
Score réaction
203
Points
280
Surement
 
  • Initiateur de la discussion
L

Lafougere

Geek
Messages
29
Score réaction
0
Points
65
EviLKniGht62 à dit:
Non,j'ai mis tous les métier en français mais en jeu sa modifie pas.
 
  • Banni
EviLKniGht62

EviLKniGht62

Psychopathe
Messages
2 133
Score réaction
203
Points
280
vien skype kevin-d62
 
  • Banni
EviLKniGht62

EviLKniGht62

Psychopathe
Messages
2 133
Score réaction
203
Points
280
ou vocal si tu as
 
flingueur789

flingueur789

Geek
Messages
51
Score réaction
0
Points
85
Lafougere à dit:
bonjour,bonsoirs j'ai un problème de métier de base je veux modifier le nom,model...
mais quand je reboot,je rejoins sa rien changer.

TEAM_POLICE = DarkRP.createJob("police", {
color = Color(25, 25, 170, 255),
model = {"models/nypd/male_02.mdl", "models/nypd/male_04.mdl","models/nypd/male_05.mdl","models/nypd/male_06.mdl","models/nypd/male_07.mdl","models4/nypd/male_08.mdl","models/nypd/male_09.mdl"},
description = [[]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 4,
salary = GAMEMODE.Config.normalsalary * 1.45,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
})

TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(150, 20, 20, 255),
model = "models/characters/gallaha.mdl",
description = [[]],
weapons = {},
command = "mayor",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
candemote = true,
category = "Civil Protection",
})

TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
color = Color(20, 20, 255, 255),
model = "models/dow/02.mdl",
description = [[]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
command = "chief",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.67,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
NeedToChangeFrom = TEAM_POLICE,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
})
Et mec va sur ce site la sa va te faciliter la vie c est pour creer des metier:
https://www.thecodingbeast.com/tools/job
 
  • Initiateur de la discussion
L

Lafougere

Geek
Messages
29
Score réaction
0
Points
65
flingueur789 à dit:
Et mec va sur ce site la sa va te faciliter la vie c est pour creer des metier:
https://www.thecodingbeast.com/tools/job
je sais crée des métier c'est pas sa le probleme.
 
  • Initiateur de la discussion
L

Lafougere

Geek
Messages
29
Score réaction
0
Points
65
  • Initiateur de la discussion
L

Lafougere

Geek
Messages
29
Score réaction
0
Points
65
EviLKniGht62 à dit:
ou vocal si tu as
tu a fait une erreur

ERROR] A runtime error has occurred in "lua/darkrp_customthings/jobs.lua" on line -1.
The best help I can give you is this:

GAMEMODE.DefaultTeam is not set to an existing job.
 
  • Banni
EviLKniGht62

EviLKniGht62

Psychopathe
Messages
2 133
Score réaction
203
Points
280
Il faut quz tu cree le job citoyen et tu met sa team en bas dans default team^^
 
Discord d'entraide
Rejoignz-nous sur Discord