Soucis pour mettre le VIP en place

  • Initiateur de la discussion
Demonyak777

Demonyak777

Nouveau né
Messages
10
Score réaction
0
Points
20
Salut a tous , d'habitude j'arrive a régler la plus part de mes erreur LUA...
mais la j'avoue que je suis entrain de sécher totalement , et surtout j'me prend bien la tète !
cela fait trois jours que j’essaie de régler mon soucis sans succès...

Voici mon code métier qui pose soucis...

TEAM_MEMBREDUSTAFF = DarkRP.createJob("** MEMBRE DU STAFF ** * MAJ *", {
color = Color(17, 163, 23, 255),
model = {
"models/player/lulsec.mdl",
"models/player/aiden_pearce.mdl"
},
description = [[ADMIN / MODÉRATEURS / [ C'EST ICI ] ]],
weapons = {"pocket", "keys", "portefeuille", "m9k_knife", "moneygun", "idcard"},
command = "membredustaff",
max = 0,
salary = 1000,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Other",
PlayerSpawn = function(ply)
ply:SetMaxHealth(500)
ply:SetHealth(500)
ply:SetArmor(500)
customCheck = function(ply) return CLIENT or
table.HasValue({'superadmin', 'admin', 'vip'}, ply:GetNWString('usergroup'))
end
})

Voici ce que la console steam me dit :
There are 2 Lua problems!
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 141.
The best help I can give you is this:

Right before the '}', Lua encountered something it could not make sense of.

Hints:
- Did you forget something here? (Perhaps a closing bracket)
- Is it a typo?

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

[ERROR] A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 697.
The best help I can give you is this:

DarkRP was unable to introduce player "DEMONYAK49 [ Dev WhiteCityRP ]" to the game. Expect further errors and shit generally being fucked!

Hints:
- This error most likely does not stand on its own, and previous serverside errors have a very good chance of telling you the cause.
- Note that errors from another addon could cause this. Specifically when they're thrown during 'PlayerInitialSpawn'.
- This error can also be caused by some other addon returning a value in 'PlayerInitialSpawn', though that is less likely.
- Errors in your DarkRP configuration (jobs, shipments, etc.) could also cause this. Earlier errors should tell you when this is the case.

The responsibility for the error above lies with (the authors of) one (or more) of these files:

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


PS: Je vous met un Screenshots pour voir les ligne de codes correctement

Merci d'avance pour votre aide et bon Développement / Jeu a tous ! :)
 

Pièces jointes

  • d.png
    d.png
    80.8 KB Vues: 12
Zokeen

Zokeen

Geek
Messages
114
Score réaction
14
Points
90
Essaye ça :

TEAM_MEMBREDUSTAFF = DarkRP.createJob("** MEMBRE DU STAFF ** * MAJ *", {
color = Color(17, 163, 23, 255),
model = {
"models/player/lulsec.mdl",
"models/player/aiden_pearce.mdl"},
description = [[ADMIN / MODÉRATEURS / [ C'EST ICI ] ]],
weapons = {"pocket", "keys", "portefeuille", "m9k_knife", "moneygun", "idcard"},
command = "membredustaff",
max = 0,
salary = 1000,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Other",
PlayerSpawn = function(ply)
ply:SetMaxHealth(500)
ply:SetHealth(500)
ply:SetArmor(500)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({'superadmin', 'admin', 'vip'}, ply:GetNWString('usergroup'))
end,
CustomCheckFailMsg = 'Vous devez être VIP pour utilisez ce job !', --- optionnel
})
 
  • Initiateur de la discussion
Demonyak777

Demonyak777

Nouveau né
Messages
10
Score réaction
0
Points
20
Soucis regler merci de ta réponse ! :)
 
Volvety

Volvety

Geek
Messages
110
Score réaction
19
Points
80
Demonyak777 à dit:
Soucis regler merci de ta réponse ! :)
Je t'invite à ajouter le préfixe "Résolu" à ta publication pour éviter que d'autres personnes souhaitent t'aider et consultent ta publication inutilement.
 
  • J'aime
Réactions: Demonyak777
  • Initiateur de la discussion
Demonyak777

Demonyak777

Nouveau né
Messages
10
Score réaction
0
Points
20
D'acc je fait ça ;)
 
Zokeen

Zokeen

Geek
Messages
114
Score réaction
14
Points
90
de rien ;)
 
Discord d'entraide
Rejoignz-nous sur Discord