Aide VS tokens

  • 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 ,je suis en ce moment sur un travaille de serveur Darkrp mais j'ai un problème .Mon problème s'est que je n'arrive pas rajouter les jobs dans jobs.lua .Je m'ai la police sa marche ,puis je m'ai civil sa amrche ,puis je met swat (swat ne ce met pas mais les autres marchent) ,puis les autres ne marchent plus ,puis ils marchent donc j'en rajoute (agent de secu et chef des swat) et plus rien ne marche et j'ai éssayé plin de fois de réparer mais SA NE MARCHE PLUS !

alors je vais vous passer mon fichier jobs.lua et si une personne arrive à réparer mon problème je lui donne 1 tokens mais faut que tout les métiers marchent et que après quand j'en crée un nouveau il marche si la personne m'a bien expliquer .

Voila merci (je présise de ne pas recopier les idées de ces métiers !Ce sont des idées qui seront mise dans une entreprise (serveur darkrp) )

--[[---------------------------------------------------------------------------
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

--[[---------------------------------------------------------------------------
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 faîtes respecter l'ordre et la sécurité de la ville !]],
weapons = {"FAS2_OTS33", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "keys"},
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", "keys"},
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", "keys"},
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", "keys"},
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", "keys"},
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
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZENS
--[[---------------------------------------------------------------------------
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)



Merci à aurelienchailloux d'avoir fait tout son possible pour m'aider avec ce poste

1 TOKENS vs l(es)'erreur(s) réparé
 
N3WM0D

N3WM0D

Geek
Messages
80
Score réaction
5
Points
95
Tu ne dois pas les placers dans jobs.lua mais dans .
gamemode>gamemode>darkrp>config>jobrelated.lua voila.
 
N3WM0D

N3WM0D

Geek
Messages
80
Score réaction
5
Points
95
et je te conseille de faire tes jobs dans : www.thecodingbeast.com/tools
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Je vais voir si sa marche .
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Sa ne marche pas je te passe le fichier

-- 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_CIVIL = DarkRP.createJob("Civile", {
color = Color(255,127, 80, 255),
model = {"models/Humans/leoup01/lale_01.mdl", "models/Humans/leoup01/lale_02.mdl", "models/Humans/leoup01/lale_03.mdl", "models/Humans/leoup01/lale_04.mdl", "models/Humans/leoup01/lale_05.mdl", "models/Humans/leoup01/lale_06.mdl", "models/Humans/leoup01/lale_07.mdl", "models/Humans/leoup01/lale_08.mdl", "models/Humans/leoup01/lemale_03.mdl", "models/Humans/leoup01/lemale_02.mdl", "models/Humans/leoup01/lemale_01.mdl", "models/Humans/leoup02/lale_01.mdl", "models/Humans/leoup02/lale_02.mdl", "models/Humans/leoup02/lale_05.mdl", "models/Humans/leoup02/lemale_01.mdl", "models/Humans/leoup02/lemale_03.mdl", "models/Humans/leoup03/lale_01.mdl", "models/Humans/leoup03/lale_04.mdl", "models/Humans/leoup03/lale_07.mdl", "models/Humans/leoup03/lemale_04.mdl", "models/Humans/Factory/male_02.mdl", "models/Humans/Factory/male_01.mdl"},
description = [[Vous êtes une personne comme les autres, vous choisissez une vie d'homme bien ou une vie d'homme criminel.]],
weapons = {"FAS2_DV2", "keys"},
command = "civile",
max = 8,
salary = 8,
admin = 0,
vote = true,
hasLicense = true,

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

TEAM_POLICE = DarkRP.createJob("Police", {
color = Color(0,0, 255, 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 faîtes respecter l'ordre et la sécurité dans la ville.]],
weapons = {"arrest_stick", "unarrest_stick", {"FAS2_OTS33", "stunstick", "weaponchecker", "weapon_ar2", "handcuffs", "Taser" },
command = "cp",
max = 5,
salary = 15,
admin = 0,
vote = true,
hasLicense = false,

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

TEAM_FORCE = DarkRP.createJob("Force spéciale", {
color = Color(0, 0, 255, 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 (trafic de drogue, fusillade, braquage ...)]],
weapons = {"FAS2_M4A1", "Taser", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "keys"},
command = "force spéciale",
max = 3,
salary = 17,
admin = 0,
vote = true,
hasLicense = false,

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

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

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

TEAM_SECURITY = DarkRP.createJob("Agent de sécurité", {
color = Color( 127, 255, 212, 255),
model = {"models/suits_07.mdl"},
description = [[Vous assurez la sécurité de la personne qui vous a engagé.]],
weapons = {"FAS2_DEAGLE", "weaponchecker", "keys"},
command = "agent de sécurité",
max = 3,
salary = 13,
admin = 0,
vote = false,
hasLicense = false,

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

end

-- Compatibility for when default teams are disabled
TEAM_CITIZEN = TEAM_CIVIL or -1
TEAM_POLICE = TEAM_POLICE or -1
TEAM_GANG = TEAM_CHIEF or -1
TEAM_MOB = TEAM_FORCE or -1
TEAM_GUN = TEAM_SECURITY or -1
TEAM_MEDIC = TEAM_MEDIC 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 = "Citizens",
categorises = "jobs",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 100,
}

DarkRP.createCategory{
name = "Civil Protection",
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,
}
 
MathiouGaming

MathiouGaming

Geek suprême
Messages
376
Score réaction
99
Points
150
Boudoudiou !
Pour ajouter des jobs c'est dans darkrpmodification !
 
N3WM0D

N3WM0D

Geek
Messages
80
Score réaction
5
Points
95
non c'est mieux comme j'ai dit
perso j'utilise jobs.lua pour editer exemple quand le maire meurt il devient citoyen
 
N3WM0D

N3WM0D

Geek
Messages
80
Score réaction
5
Points
95
Rubys passe ton skype
 
MathiouGaming

MathiouGaming

Geek suprême
Messages
376
Score réaction
99
Points
150
Je sais N3W MOD mais on peut également faire ça depuis darkrpmodification.
Et c'est même très conseillé pour éviter les bugs...
 
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
Les modifications de job se sont toujours faite dans le fichier jobrelated je vois pas pourquoi aujourd'hui vous voulé réinventé et allez modifier les fichiers ailleurs
et pour ton problème Ruby je te conseil de rajouter les Job un par un

Dans un premier temps tu supprime tout les jobs que tu as mis puis tu les remets un par un et comme sa tu finira par trouver le script du job qui bug

Et par pitié apprenait à codé vous même vos propres jobs arrêté d'utiliser des sites pour crée vos scripts sa vous apprends rien et sa insert plus de bugs que autres choses...

Puis regarde Ruby sa :

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

C'est n'importe quoi sa ...

normale que sa fonctionne pas ... tu doit mettre la meme team

TEAM_CIVIL = TEAM_CIVIL or -1
TEAM_GANG = TEAM_GANG or -1

Tu voie se que je veux dire ? tu doit mettre la meme team a chaque fois et l'orsque tu recrée un metier tu recrée aussi une team IDENTIQUE !

donc si tu crée le metier SWAT tu crée une ligne avec marqué

TEAM_SWAT = TEAM_SWAT or -1

Et enssuite dans ton script tu commencera ta ligne par
TEAM_SWAT = darkrp.creatjob (" swat")....
 
Dernière édition:
  • J'aime
Réactions: N3WM0D et Rubys
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Je sais plus ,il n'y a plus rien qui marche (quand je me connecte il n'y a aucun métier) .On m'a dit de changer la puis la puis non pas la la puis la et la ...Y a plus de métier qui marche et quand je me co on me dit que j'ai 1 problème dans lua ,la j'ai besoin de + que de l'aide .
 
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
Je t'est dit repart de zéro et test chaque métier un par un
 
MathiouGaming

MathiouGaming

Geek suprême
Messages
376
Score réaction
99
Points
150
Ou alors, envoi nous tes logs je regarde ça et je te dit les erreurs.
Je te promet que les logs contiennent beaucoups d'informations, ils indiquent même la ligne ou il y'a l'erreur.
 
  • J'aime
Réactions: Rubys
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Comment je vous m'ai admin sur le projet ?
 
MathiouGaming

MathiouGaming

Geek suprême
Messages
376
Score réaction
99
Points
150
Que voulez-vous dire?
Sur le panel MtxServ ?
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Oui ,je le fais ?
 
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
J’ai fait un tuto sur la création de job visite je ferait d'autre tuto
 
  • Initiateur de la discussion
Rubys

Rubys

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

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Le métier ne ce met toujours pas

-- 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_CIVILE = DarkRP.createJob("Civile", {
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 = [[Vous etes une personne comme les autres, vous choisissez une vie de bien ou une vie de criminel.]],
weapons = {},
command = "civile",
max = 8,
salary = 10
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Citizens",
})

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 = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
weapons = {},
command = "citizen",
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
})

TEAM_POLICE = DarkRP.createJob("Civil Protection", {
color = Color(25, 25, 170, 255),
model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
description = [[The protector of every citizen that lives in the city.
You have the power to arrest criminals and protect innocents.
Hit a player with your arrest baton to put them in jail.
Bash a player with a stunstick and they may learn to obey the law.
The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
The Battering Ram can also unfreeze frozen props (if enabled).
Type /wanted <name> to alert the public to the presence of a criminal.]],
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_GANG = DarkRP.createJob("Gangster", {
color = Color(75, 75, 75, 255),
model = {
"models/player/Group03/Female_01.mdl",
"models/player/Group03/Female_02.mdl",
"models/player/Group03/Female_03.mdl",
"models/player/Group03/Female_04.mdl",
"models/player/Group03/Female_06.mdl",
"models/player/group03/male_01.mdl",
"models/player/Group03/Male_02.mdl",
"models/player/Group03/male_03.mdl",
"models/player/Group03/Male_04.mdl",
"models/player/Group03/Male_05.mdl",
"models/player/Group03/Male_06.mdl",
"models/player/Group03/Male_07.mdl",
"models/player/Group03/Male_08.mdl",
"models/player/Group03/Male_09.mdl"},
description = [[The lowest person of crime.
A gangster generally works for the Mobboss who runs the crime family.
The Mob boss sets your agenda and you follow it or you might be punished.]],
weapons = {},
command = "gangster",
max = 3,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})

TEAM_MOB = DarkRP.createJob("Mob boss", {
color = Color(25, 25, 25, 255),
model = "models/player/gman_high.mdl",
description = [[The Mob boss is the boss of the criminals in the city.
With his power he coordinates the gangsters and forms an efficient crime organization.
He has the ability to break into houses by using a lockpick.
The Mob boss posesses the ability to unarrest you.]],
weapons = {"lockpick", "unarrest_stick"},
command = "mobboss",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.34,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})

TEAM_GUN = DarkRP.createJob("Gun Dealer", {
color = Color(255, 140, 0, 255),
model = "models/player/monk.mdl",
description = [[A Gun Dealer is the only person who can sell guns to other people.
Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
weapons = {},
command = "gundealer",
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})

TEAM_MEDIC = DarkRP.createJob("Medic", {
color = Color(47, 79, 79, 255),
model = "models/player/kleiner.mdl",
description = [[With your medical knowledge you work to restore players to full health.
Without a medic, people cannot be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.]],
weapons = {"med_kit"},
command = "medic",
max = 3,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
medic = true,
category = "Citizens",
})




(JE MET LA MOITIER DANS UN AUTRE MESSAGE CAR IL Y A PLUS DE 1000 CARACTERES)
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
color = Color(20, 20, 255, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[The Chief is the leader of the Civil Protection unit.
Coordinate the police force to enforce law in the city.
Hit a player with arrest baton to put them in jail.
Bash a player with a stunstick and they may learn to obey the law.
The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
Type /wanted <name> to alert the public to the presence of a criminal.
Type /jailpos to set the Jail Position]],
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",
})

TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[The Mayor of the city creates laws to govern the city.
If you are the mayor you may create and accept warrants.
Type /wanted <name> to warrant a player.
Type /jailpos to set the Jail Position.
Type /lockdown initiate a lockdown of the city.
Everyone must be inside during a lockdown.
The cops patrol the area.
/unlockdown to end a lockdown]],
weapons = {},
command = "mayor",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
category = "Civil Protection",
})

TEAM_HOBO = DarkRP.createJob("Hobo", {
color = Color(80, 45, 0, 255),
model = "models/player/corpse1.mdl",
description = [[The lowest member of society. Everybody laughs at you.
You have no home.
Beg for your food and money
Sing for everyone who passes to get money
Make your own wooden home somewhere in a corner or outside someone else's door]],
weapons = {"weapon_bugbait"},
command = "hobo",
max = 5,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
hobo = true,
category = "Citizens",
})

if not DarkRP.disabledDefaults["modules"]["hungermod"] then
TEAM_COOK = DarkRP.createJob("Cook", {
color = Color(238, 99, 99, 255),
model = "models/player/mossman.mdl",
description = [[As a cook, it is your responsibility to feed the other members of your city.
You can spawn a microwave and sell the food you make:
/buymicrowave]],
weapons = {},
command = "cook",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
cook = true
})
end

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


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 = "Citizens",
categorises = "jobs",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 100,
}

DarkRP.createCategory{
name = "Civil Protection",
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,
}
 
MathiouGaming

MathiouGaming

Geek suprême
Messages
376
Score réaction
99
Points
150
Vas y si tu veux met moi, je me permettrai juste de relancer le serveur et de regarder les logs.
 
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
Tu fait des erreurs toute bete exemple :

les team tu a oublier de marquer " or -1" a team civil
puis dans le paragraphe du métier team civile tu a oublier une virgule
 
  • J'aime
Réactions: Rubys
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
aurelienchailloux à dit:
Tu fait des erreurs toute bete exemple :

les team tu a oublier de marquer " or -1" a team civil
puis dans le paragraphe du métier team civile tu a oublier une virgule
paragraphe du métier team civile où la virgule ? et où le paragraphe
 
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
TEAM_CIVILE = DarkRP.createJob("Civile", {
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 = [[Vous etes une personne comme les autres, vous choisissez une vie de bien ou une vie de criminel.]],
weapons = {},
command = "civile",
max = 8,
salary = 10 <--------------------------- TU AS OUBLIER UNE VIRGULE
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Citizens",
})
 
  • J'aime
Réactions: Rubys
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
-- Compatibility for when default teams are disabled
TEAM_CITIZEN = TEAM_CITIZIEN or -1
TEAM_POLICE = TEAM_POLICE or -1
TEAM_GANG = TEAM_CHIEF or -1
TEAM_MOB = TEAM_FORCE or -1
TEAM_GUN = TEAM_SECURITY or -1
TEAM_MEDIC = TEAM_MEDIC or -1
TEAM_MAYOR = TEAM_MAYOR or -1
TEAM_HOBO = TEAM_HOBO or -1
TEAM_CIVILE = TEAM_CIVILE <------------------------------ TU AS OUBLIER DE METTRE ( or -1 )

/*
 
  • J'aime
Réactions: Rubys
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Merci mais je vais chialer sa ne marche toujours pas je vais m'éfondrer sur mon clavier !
 
Dernière édition:
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
aurelinechailloux tu veux que je te met admin sur mtx ?
 
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
Non donne moi juste accées a on ftp et je vais aller voir le problème
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Comment ? en n'allent dans admins ?
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Ou autrement ?
 
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
vient skype : aurelien.chailloux
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Ok mais mon micro est cassé .
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Eee.. Il y a 6 aurelien.chailloux le quel ^^
 
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
Pseudo nucléar
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
je tes envoyé
 
  • Initiateur de la discussion
Rubys

Rubys

Geek
Messages
51
Score réaction
0
Points
95
Merci aurelienchailloux (je te bdonne ton tokens)
 
aurelienchailloux

aurelienchailloux

Geek suprême
Messages
314
Score réaction
76
Points
130
Avec plaisir.
 
Discord d'entraide
Rejoignz-nous sur Discord