Soucis

SGCAtlantis

SGCAtlantis

Psychopathe
Messages
2 408
Score réaction
443
Points
300
Code:
tu as mis
CustomCheckFailMsg = "Cette Emploi Est VIP"
alors que
CustomCheckFailMsg = "Cette Emploi Est VIP",
 
  • Initiateur de la discussion
Joe Leroi

Joe Leroi

Chuck Norris
Messages
4 368
Score réaction
933
Points
605
SGCAtlantis à dit:
Code:
tu as mis
CustomCheckFailMsg = "Cette Emploi Est VIP"
alors que
CustomCheckFailMsg = "Cette Emploi Est VIP",
Fait :

Code:
TEAM_BABY = DarkRP.createJob("Bébé Innocent", {
color = Color(0, 86, 13, 255),
model = {""},
description = [[Faite vous adoptez, et devez un méchant petit bébé, contrôlez votre famille, faite leur faire des choses méchantes...]],
weapons = {""},
command = "baby",
max = 1,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
jobType = "vip",
candemote = true,
customCheck = function(ply) return table.HasValue({"vip", "admin", "superadmin", "chef-admin", "moderateur"}, ply:GetNWString("usergroup")) end,
CustomCheckFailMsg = "Cette Emploi Est VIP",
category = "Citizen",
})
-------------------------------------------------------
HOW TO MAKE A DOOR GROUP
--------------------------------------------------------
Et sa me ressort :

Code:
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 1020.
The best help I can give you is this:
Right before the 'TO', Lua expected to read an '='-sign, but it didn't.
Hints: - Did you simply forget the '='-sign? - Did you forget a comma? - Is this supposed to be a local variable?
------- End of Simplerr error -------
 
SGCAtlantis

SGCAtlantis

Psychopathe
Messages
2 408
Score réaction
443
Points
300
[QUOTE

-------------------------------------------------------
HOW TO MAKE A DOOR GROUP
--------------------------------------------------------[/CODE]

ça na rien a foutre dans jobs.lua

ton jobs.lua par defaut est comme ça

Code:
--[[---------------------------------------------------------------------------
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:
---------------------------------------------------------------------------]]
--[[---------------------------------------------------------------------------
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)
vire ça

-------------------------------------------------------
HOW TO MAKE A DOOR GROUP
--------------------------------------------------------
 
SGCAtlantis

SGCAtlantis

Psychopathe
Messages
2 408
Score réaction
443
Points
300
Joe Leroi à dit:
Fait :

Code:
TEAM_BABY = DarkRP.createJob("Bébé Innocent", {
color = Color(0, 86, 13, 255),
model = {""},
description = [[Faite vous adoptez, et devez un méchant petit bébé, contrôlez votre famille, faite leur faire des choses méchantes...]],
weapons = {""},
command = "baby",
max = 1,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
jobType = "vip",
candemote = true,
customCheck = function(ply) return table.HasValue({"vip", "admin", "superadmin", "chef-admin", "moderateur"}, ply:GetNWString("usergroup")) end,
CustomCheckFailMsg = "Cette Emploi Est VIP",
category = "Citizen",
})
-------------------------------------------------------
HOW TO MAKE A DOOR GROUP
--------------------------------------------------------
Et sa me ressort :

Code:
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 1020.
The best help I can give you is this:
Right before the 'TO', Lua expected to read an '='-sign, but it didn't.
Hints: - Did you simply forget the '='-sign? - Did you forget a comma? - Is this supposed to be a local variable?
------- End of Simplerr error -------
on va pas sens sortir si on dit de la *** poste ton jobs.lua en entier
 
SGCAtlantis

SGCAtlantis

Psychopathe
Messages
2 408
Score réaction
443
Points
300
FalkioGMR à dit:
Supprimé la ligne
--------------------------------------------------------
HOW TO MAKE À DOOR GROUP
tu dit quoi ?

il faut simplement supp tout ça

Code:
-------------------------------------------------------
HOW TO MAKE A DOOR GROUP
--------------------------------------------------------
 
  • Initiateur de la discussion
Joe Leroi

Joe Leroi

Chuck Norris
Messages
4 368
Score réaction
933
Points
605
Sur mon vreai serveur, sa marche tout est dedans ^^
 
SGCAtlantis

SGCAtlantis

Psychopathe
Messages
2 408
Score réaction
443
Points
300
Joe Leroi à dit:
Sur mon vreai serveur, sa marche tout est dedans ^^
vrai faut peu etre pas la meme version ecoute
toi tu as la dernière version la
donc soit tu fait comme je t es dit poste le fichier jobs.lua ou moi je dit plus rein
ça fait plus de 2 heures pour un jobs et ça me fou les boule la
 
  • Initiateur de la discussion
Joe Leroi

Joe Leroi

Chuck Norris
Messages
4 368
Score réaction
933
Points
605
SGCAtlantis à dit:
vrai faut peu etre pas la meme version ecoute
toi tu as la dernière version la
donc soit tu fait comme je t es dit poste le fichier jobs.lua ou moi je dit plus rein
ça fait plus de 2 heures pour un jobs et ça me fou les boule la
Je suis entrain de le faire ^^, sinon, je vais me débrouiller et je vais vous dire demain, si sa marche pas je vous envoi mon jobs.lua
 
  • Initiateur de la discussion
Joe Leroi

Joe Leroi

Chuck Norris
Messages
4 368
Score réaction
933
Points
605
FalkioGMR à dit:
Yep, je vais relire tous, mettre les models, voir si sa viens de la car j'en ai mis aucun et même pour les weapons
 
SGCAtlantis

SGCAtlantis

Psychopathe
Messages
2 408
Score réaction
443
Points
300
Joe Leroi à dit:
Yep, je vais relire tous, mettre les models, voir si sa viens de la car j'en ai mis aucun et même pour les weapons
le weapon ne fait rien a voir tu peu laisser vide regard le fichier de base pour le citoyen ya pas de weapon

Code:
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",
})
 
  • Initiateur de la discussion
Joe Leroi

Joe Leroi

Chuck Norris
Messages
4 368
Score réaction
933
Points
605
Oui mais moi il y a les guillemet ^^
 
Discord d'entraide
Rejoignz-nous sur Discord