PROBLEME LUA ERROR job vip

  • Initiateur de la discussion
Predatz

Predatz

Geek
Messages
58
Score réaction
2
Points
45
donc salut j'ai un petit probleme avec le vip qui ne fonctionne pas je n'arrive pas du tout a voir d'ou vien l'erreur mais je pense que sa doit etres une faute de frappe voici l'erreur :


There is 1 Lua problem!
Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 114.
The best help I can give you is this:

There is an opening '{' bracket at line 102, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 114.

Hints:
- Did you forget a comma?
- All open brackets ({, (, [) must have a matching closing bracket. Are you sure it's there?
- Brackets must be opened and closed in the right order. This will work: ({}), but this won't: ({)}.

------- End of Simplerr error -------

ET VOICI LE JOB VIP :

TEAM_HACKER = DarkRP.createJob("Hacker", {
color = Color(150, 91, 0, 255),
model = {"models/player/aiden_pearce.mdl"},
description = [[Vous êtes un hacker , vous hacker des ATM , et les systèmes de la ville !]],
weapons = {"weapon_arc_atmcard", "weapon_arc_atmhack", "weapon_fists", "weapon_hack_phone"},
command = "Hacker",
max = 2,
salary = 150,
admin = 0,
vote = false,
hasLicense = false,
candemote = true
customCheck = function(ply) return ply:IsUserGroup("VIP") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("Adminvip")end,
CustomCheckFailMsg = "Tu doit devenir un Membre VIP ! utilise: !vip"
})

-------------------------------------------------------------------------------------------------
Ligne 102 : TEAM_HACKER = DarkRP.createJob("Hacker", {

Ligne 114 : customCheck = function(ply) return ply:IsUserGroup("VIP") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("Adminvip")end,
 
Lucky95JL

Lucky95JL

Nouveau né
Messages
18
Score réaction
0
Points
20
Tu peut passée sur teamspeak : www.legitside.net
 
  • Initiateur de la discussion
Predatz

Predatz

Geek
Messages
58
Score réaction
2
Points
45
je suis sur le teamspeak
 
Lucky95JL

Lucky95JL

Nouveau né
Messages
18
Score réaction
0
Points
20
Contact-moi sur steam : http://steamcommunity.com/id/luckyshrub/
 
_Remax

_Remax

Geek
Messages
345
Score réaction
69
Points
80
Bonjour, donne nous le code intégré dans le jobs.lua
je pourrais t'expliquer ton erreur sinon

Code:
 TEAM_DARYL = DarkRP.createJob("Daryl DIXON VIP", { -- That's TEAM_PIRATE (Used for like AddCustomDoorgroup or Add to only that group to a door. Also, never use the same TEAM_) color = Color(0, 201, 184, 0), -- Chat / Scoreboard Color model = "models/the walking dead survival instincts/daryl_dixon.mdl", -- Model; to add multiple use {"models/../model1.mdl","models/../model2.mld}, NOTE the extra comma after the bracket. description = [[Choisir ce metier ?]], --Description for Job. weapons = {"weapon_xbow5"}, category = "VIP", command = "daryl", --Chat command for job. Don't use the same as another teams. max = 1, -- Maximum amount of players for this job. salary = 50, -- The salary they get paid. admin = 0, -- Requires Admin? 1 for yes, 0 for no. vote = false, -- Do they need to vote? true for yes, false for no. hasLicense = false, -- Do they have a license for weapons? customCheck = function(ply) return ply:GetNWString("usergroup") == "donateur" or ply:IsAdmin() end, -- La fonction customCheck. Mettez nil ou ne rien mettre pour ne pas en avoir. CustomCheckFailMsg = "Ce métier est uniquement donateur!", -- Message qui s'affiche lorsque l'utilisateur essaie d'obtenir le job sans avoir le groupe d'utilisateur requis.
})
Recopie sa en changeant à ta guise
 
  • Initiateur de la discussion
Predatz

Predatz

Geek
Messages
58
Score réaction
2
Points
45
je l'ai modifier mais ça fonctionne pas :

TEAM_HACKER = DarkRP.createJob("*VIP*Hacker", { -- That's TEAM_HACKER (Used for like AddCustomDoorgroup or Add to only that group to a door. Also, never use the same TEAM_)
color = Color(0, 201, 184, 0), -- Chat / Scoreboard Color
model = "models/the walking dead survival instincts/daryl_dixon.mdl", -- Model; to add multiple use {"models/player/aiden_pearce.mdl}, NOTE the extra comma after the bracket.
description = [[Vous êtes un hacker , vous hacker des ATM , et les systèmes de la ville !]], --Description for Job.
weapons = {"weapon_arc_atmcard", "weapon_arc_atmhack", "weapon_fists", "weapon_hack_phone""weapon_arc_atmcard", "weapon_arc_atmhack", "weapon_fists", "weapon_hack_phone"},
category = "VIP",
command = "hacker", --Chat command for job. Don't use the same as another teams.
max = 2, -- Maximum amount of players for this job.
salary = 150, -- The salary they get paid.
admin = 0, -- Requires Admin? 1 for yes, 0 for no.
vote = false, -- Do they need to vote? true for yes, false for no.
hasLicense = false, -- Do they have a license for weapons?
customCheck = function(ply) return ply:GetNWString("usergroup") == "VIP" or ply:IsAdmin() end, -- La fonction customCheck. Mettez nil ou ne rien mettre pour ne pas en avoir.
CustomCheckFailMsg = "Ce métier est uniquement VIP!", -- Message qui s'affiche lorsque l'utilisateur essaie d'obtenir le job sans avoir le groupe d'utilisateur requis.
})
 
MaGiX

MaGiX

Geek
Messages
92
Score réaction
9
Points
85
Comment sa sa ne marche pas toujour le probléme LUA ou rien ne se passe ?
 
  • Initiateur de la discussion
Predatz

Predatz

Geek
Messages
58
Score réaction
2
Points
45
Toujours problème LUA
 
MaGiX

MaGiX

Geek
Messages
92
Score réaction
9
Points
85
TEAM_RAID = DarkRP.createJob("*VIP* R.A.I.D", {
color = Color(20, 0, 255, 255),
model = {
"models/player/r6s_doc.mdl",
},
description = [[RAID: aide la population SunLightRP a garder sont calme | ILLEGAL: Faire des printers | ARME: LEGERE/LOURDE/EXTRA LOURDE]],
weapons = {"pass_police_nationale_1", "wep_jack_job_drpstungun", "weapon_policeshield", "weapon_doorbreak", "m9k_m92beretta", "m9k_m4a1", "weapon_fists", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "weapon_cuff_police", "keys", "weapon_arc_atmcard", "weapon_charid", "weapon_grapplehook", "weapon_cs_smoke", "weapon_cs_he"},
command = "sniper",
max = 2,
salary = 250,
admin = 0,
vote = false,
type = "commerce",
hasLicense = true,
candemote = true,
category = "Civil Protection",
customCheck = function(ply) return ply:IsUserGroup("VIP") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("Modotestvip") or ply:IsUserGroup("Moderateurvip") or ply:IsUserGroup("Adminvip")end,
CustomCheckFailMsg = "Tu doit devenir un Membre VIP ! utilise: !vip"
})

essaye le mien est tu moi si sa fonctonne
 
  • Initiateur de la discussion
Predatz

Predatz

Geek
Messages
58
Score réaction
2
Points
45
dak
 
Discord d'entraide
Rejoignz-nous sur Discord