Petit problème

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

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Bonjour,j'ai ajouter un nouveau metier a mon serveur darkrp mais je sais pas pourquoi le métier à

j'ai enlever les armes mais le métier a quand même le baton d'arest ,la matraque .... ?

Et aussi qui peux me dire l'erreur qu'il y a ? je ne trouve pas

TEAM_OTHER = DarkRP.createJob("Agent de sécurité", {
color = Color(0, 255, 255, 255),
model = {"Suited Man 2"},
description = [[Vous assurez la sécurité de la personne ou de son habitation qui vous a engagé.]],
weapons = {"IMI Desert Eagle", "weaponchecker"},
command = "popo",
max = 3,
salary = 11,
admin = 0,
vote = true,
hasLicense = true,

-- Insert customCheck here if you have one and want one.
})
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
Rubys à dit:
Bonjour,j'ai ajouter un nouveau metier a mon serveur darkrp mais je sais pas pourquoi le métier à

j'ai enlever les armes mais le métier a quand même le baton d'arest ,la matraque .... ?

Et aussi qui peux me dire l'erreur qu'il y a ? je ne trouve pas

TEAM_OTHER = DarkRP.createJob("Agent de sécurité", {
color = Color(0, 255, 255, 255),
model = {"Suited Man 2"},
description = [[Vous assurez la sécurité de la personne ou de son habitation qui vous a engagé.]],
weapons = {"IMI Desert Eagle", "weaponchecker"},
command = "popo",
max = 3,
salary = 11,
admin = 0,
vote = true,
hasLicense = true,

-- Insert customCheck here if you have one and want one.
})
Remplace dans command "popo" par command = "Agent de sécurité"
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
Rubys à dit:
Bonjour,j'ai ajouter un nouveau metier a mon serveur darkrp mais je sais pas pourquoi le métier à

j'ai enlever les armes mais le métier a quand même le baton d'arest ,la matraque .... ?

Et aussi qui peux me dire l'erreur qu'il y a ? je ne trouve pas

TEAM_OTHER = DarkRP.createJob("Agent de sécurité", {
color = Color(0, 255, 255, 255),
model = {"Suited Man 2"},
description = [[Vous assurez la sécurité de la personne ou de son habitation qui vous a engagé.]],
weapons = {"IMI Desert Eagle", "weaponchecker"},
command = "popo",
max = 3,
salary = 11,
admin = 0,
vote = true,
hasLicense = true,

-- Insert customCheck here if you have one and want one.
})

Et faut le faire à chaque métier remplacer dans command sinon c'est sûre que rien ne marcheras.
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Merci .
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
j'ai fais avec tout mes job mais sa marche pas tu peux m'aide step ?

il y a 5 métiers ,ils y en a qui marchent mais que j'en rajoute un ils partent puis je corrige l'erreur puis sa revien pffff

TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(25, 25, 170, 255),
model = {"models/player/uk_police/uk_police_01.mdl","models/player/uk_police/uk_police_02.mdl","models/player/uk_police/uk_police_03.mdl","models/player/uk_police/uk_police_03_64.mdl","models/player/uk_police/uk_police_03_skin1_64.mdl","models/player/uk_police/uk_police_04.mdl"},
description = [[Vous vous chargez de faire respecter l'ordre et la sécurité de la ville !]],
weapons = {"FAS2_OTS33", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"},
command = "Police",
max = 5,
salary = 17,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})

TEAM_POLICE = DarkRP.createJob("Force spéciale", {
color = Color(25, 25, 170, 255),
model = {"models/rusty/rpd_swat_04.mdl", "models/rusty/rpd_swat_s.mdl"},
description = [[Vous vous occupez des gros Problèmes de la ville (drogue, fusillade, braquage ...]],
weapons = {"FAS2_M4A1", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"},
command = "Force spéciale",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})

TEAM_POLICE = DarkRP.createJob("Chef des forces spéciales", {
color = Color(25, 25, 170, 255),
model = {"models/jbarnes/characters/hrcop.mdl"},
description = [[Vous dirigez les interventions.]],
weapons = {"FAS2_M3S90", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"},
command = "Chef des forces spéciales",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})

TEAM_OTHER = DarkRP.createJob("Civile", {
color = Color(255, 127, 80, 255),
model = {"Rebel Male 1", "Rebel Male 2", "Rebel Male 3", "Rebel Male 4", "Rebel Male 5", "Rebel Male 6", "Rebel Male 7", "Rebel Male 8", "Rebel Male 9", "Rebel Female 1", "Rebel Female 2", "Rebel Female 3", "Rebel Female 4", "Rebel Female 6", "Rebel Female 7", "Refugee Male 1", "Refugee Male 2", "Refugee Male 3", "Refugee Male 4", "Refugee Male 5", "Refugee Male 6", "Refugee Male 7", "Refugee Male 8", "Refugee Male 9", "Refugee Female 1", "Refugee Female 2", "Refugee Female 3", "Refugee Female 4", "Refugee Female 6", "Refugee Female 7", "Citizen Male 1", "Citizen Male 2", "Citizen Female 2", "Factory Male 3", "Factory Female 2"},
description = [[Vous êtes une personne normale ,vous choisissez votre vie - une vie de civil gentil ou une vie de civil criminel ! (Lire les règles avant d'utiliser).]],
weapons = {"FAS2_DV2"},
command = "Civile",
max = 15,
salary = 7,
admin = 0,
vote = true,
hasLicense = false,
}
})

TEAM_OTHER = DarkRP.createJob("Agent de sécurité", {
color = Color(0, 255, 255, 255),
model = {"models/suits_07.mdl"},
description = [[Vous assurez la sécurité de la personne ou de son habitation qui vous a engagé.]],
weapons = {"FAS2_DEAGLE", "weaponchecker"},
command = "Agent de sécurité",
max = 3,
salary = 13,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})

(Ne pas recopier ces métiers)
 
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
Enfaite lorsque u crée un métier faut aussi crée la TEAM qui va avec... exemple
je veux crée "chef de la police"

je crée d’abord cet ligne : TEAM_CHIEF = TEAM_CHIEF or -1

puis ensuite lorsque je vais crée le métier je fait ceci :

TEAM_CHIEF = DarkRP.createJob("chef de la Police", {

En l"occurance toi tu a la même TEAM pour plusieurs et même métier

Si tu veux crée des force spéciale alors tu crée cet ligne :
TEAM_FORCE = TEAM_FORCE or -1

puis ensuite tu crée ton métier en débutant par ceci :

TEAM_FORCE = DarkRP.createJob("Force spéciale", {

et sa pour chaque métier
 
  • J'aime
Réactions: Rubys
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
J'ai éssayé et sa ne marche pas encore j'ai mis la TEAM ,j'ai même monter la ligne car sa n'avait pas marcher .Je comprend vraiment pas l'erreur .

TEAM_POLICE = TEAM_POLICE or -1
TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(25, 25, 170, 255),
model = {"models/player/uk_police/uk_police_01.mdl","models/player/uk_police/uk_police_02.mdl","models/player/uk_police/uk_police_03.mdl","models/player/uk_police/uk_police_03_64.mdl","models/player/uk_police/uk_police_03_skin1_64.mdl","models/player/uk_police/uk_police_04.mdl"},
description = [[Vous vous chargez de faire respecter l'ordre et la sécurité de la ville !]],
weapons = {"FAS2_OTS33", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"},
command = "Police",
max = 5,
salary = 17,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})

TEAM_FORCE = TEAM_FORCE or -1
TEAM_FORCE = DarkRP.createJob("Force spéciale", {
color = Color(25, 25, 170, 255),
model = {"models/rusty/rpd_swat_04.mdl", "models/rusty/rpd_swat_s.mdl"},
description = [[Vous vous occupez des gros Problèmes de la ville (drogue, fusillade, braquage ...]],
weapons = {"FAS2_M4A1", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"},
command = "Force spéciale",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})

TEAM_CHIEF = TEAM_CHIEF or -1
TEAM_CHIEF = DarkRP.createJob("Chef des forces spéciales", {
color = Color(25, 25, 170, 255),
model = {"models/jbarnes/characters/hrcop.mdl"},
description = [[Vous dirigez les interventions.]],
weapons = {"FAS2_M3S90", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"},
command = "Chef des forces spéciales",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})

TEAM_CIVIL = TEAM_CIVIL or -1
TEAM_CIVIL = DarkRP.createJob("Civile", {
color = Color(255, 127, 80, 255),
model = {"Rebel Male 1", "Rebel Male 2", "Rebel Male 3", "Rebel Male 4", "Rebel Male 5", "Rebel Male 6", "Rebel Male 7", "Rebel Male 8", "Rebel Male 9", "Rebel Female 1", "Rebel Female 2", "Rebel Female 3", "Rebel Female 4", "Rebel Female 6", "Rebel Female 7", "Refugee Male 1", "Refugee Male 2", "Refugee Male 3", "Refugee Male 4", "Refugee Male 5", "Refugee Male 6", "Refugee Male 7", "Refugee Male 8", "Refugee Male 9", "Refugee Female 1", "Refugee Female 2", "Refugee Female 3", "Refugee Female 4", "Refugee Female 6", "Refugee Female 7", "Citizen Male 1", "Citizen Male 2", "Citizen Female 2", "Factory Male 3", "Factory Female 2"},
description = [[Vous êtes une personne normale ,vous choisissez votre vie - une vie de civil gentil ou une vie de civil criminel ! (Lire les règles avant d'utiliser).]],
weapons = {"FAS2_DV2"},
command = "Civile",
max = 15,
salary = 7,
admin = 0,
vote = true,
hasLicense = false,
}
})

TEAM_AGENT = TEAM_ AGENT or -1
TEAM_AGENT = DarkRP.createJob("Agent de sécurité", {
color = Color(0, 255, 255, 255),
model = {"models/suits_07.mdl"},
description = [[Vous assurez la sécurité de la personne ou de son habitation qui vous a engagé.]],
weapons = {"FAS2_DEAGLE", "weaponchecker"},
command = "Agent de sécurité",
max = 3,
salary = 13,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})


(ne pas recopier ces métiers)
 
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
Les lignes
-- 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


se mettent en bas pas a coter de chaque métier ^^
 
  • J'aime
Réactions: Rubys
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Je vais voir si sa marche merci .
 
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
En plus il me semble que le team_chief existe déjà pour chef de la police bref fait bien gaffe que tes pas 2 fois la même temps pour 2 métier différents
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Ou sa en bas ? car j'ai pas trouver -- Compatibility for when default teams are disabled j'ai éssayé autre part mais je crois pas que c'est là.

--[[---------------------------------------------------------------------------
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_POLICE = DarkRP.createJob("Policier", {
color = Color(25, 25, 170, 255),
model = {"models/player/uk_police/uk_police_01.mdl","models/player/uk_police/uk_police_02.mdl","models/player/uk_police/uk_police_03.mdl","models/player/uk_police/uk_police_03_64.mdl","models/player/uk_police/uk_police_03_skin1_64.mdl","models/player/uk_police/uk_police_04.mdl"},
description = [[Vous vous chargez de faire respecter l'ordre et la sécurité de la ville !]],
weapons = {"FAS2_OTS33", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"},
command = "Police",
max = 5,
salary = 17,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})

TEAM_FORCE = DarkRP.createJob("Force spéciale", {
color = Color(25, 25, 170, 255),
model = {"models/rusty/rpd_swat_04.mdl", "models/rusty/rpd_swat_s.mdl"},
description = [[Vous vous occupez des gros Problèmes de la ville (drogue, fusillade, braquage ...]],
weapons = {"FAS2_M4A1", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"},
command = "Force spéciale",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})

TEAM_CHIEF = DarkRP.createJob("Chef des forces spéciales", {
color = Color(25, 25, 170, 255),
model = {"models/jbarnes/characters/hrcop.mdl"},
description = [[Vous dirigez les interventions.]],
weapons = {"FAS2_M3S90", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"},
command = "Chef des forces spéciales",
max = 3,
salary = 20,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})

TEAM_CIVIL = DarkRP.createJob("Civile", {
color = Color(255, 127, 80, 255),
model = {"Rebel Male 1", "Rebel Male 2", "Rebel Male 3", "Rebel Male 4", "Rebel Male 5", "Rebel Male 6", "Rebel Male 7", "Rebel Male 8", "Rebel Male 9", "Rebel Female 1", "Rebel Female 2", "Rebel Female 3", "Rebel Female 4", "Rebel Female 6", "Rebel Female 7", "Refugee Male 1", "Refugee Male 2", "Refugee Male 3", "Refugee Male 4", "Refugee Male 5", "Refugee Male 6", "Refugee Male 7", "Refugee Male 8", "Refugee Male 9", "Refugee Female 1", "Refugee Female 2", "Refugee Female 3", "Refugee Female 4", "Refugee Female 6", "Refugee Female 7", "Citizen Male 1", "Citizen Male 2", "Citizen Female 2", "Factory Male 3", "Factory Female 2"},
description = [[Vous êtes une personne normale ,vous choisissez votre vie - une vie de civil gentil ou une vie de civil criminel ! (Lire les règles avant d'utiliser).]],
weapons = {"FAS2_DV2"},
command = "Civile",
max = 15,
salary = 7,
admin = 0,
vote = true,
hasLicense = false,
}
})

TEAM_AGENT = DarkRP.createJob("Agent de sécurité", {
color = Color(0, 255, 255, 255),
model = {"models/suits_07.mdl"},
description = [[Vous assurez la sécurité de la personne ou de son habitation qui vous a engagé.]],
weapons = {"FAS2_DEAGLE", "weaponchecker"},
command = "Agent de sécurité",
max = 3,
salary = 13,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})

--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
TEAM_POLICE = TEAM_POLICE or -1
TEAM_CHIEF = TEAM_CHIEF or -1
TEAM_AGENT = TEAM_ AGENT or -1
TEAM_CIVIL = TEAM_CIVIL or -1
TEAM_FORCE = TEAM_FORCE or -1
--[[---------------------------------------------------------------------------
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)



(ne pas recopier ces métiers)
 
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
a partir de la ligne 192
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
192 ?J'ai que 121 lignes .
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Je n'ai pas la ligne 192 j'ai que 121 lignes je le met où alors ?
 
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
Vais faire un tuto vidéo
 
  • J'aime
Réactions: Rubys
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Merci .
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
Tkt
 
  • J'aime
Réactions: Rubys
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Discord d'entraide
Rejoignz-nous sur Discord