- Initiateur de la discussion
C
Chen!0667
Nouveau né
- Messages
- 5
- Score réaction
- 1
- Points
- 15
Salut j'ai un problème avec le custom check pour le VIP, je vous montre le code
TEAM_PSYCO = DarkRP.createJob("Meurtrier Fou VIP", {
color = Color(33, 189, 31, 20),
model = {"models/player/nihilus.mdl"},
description = [[Vous tuer en toute discression]],
weapons = {"ephone"},
command = "989766fsfshjuklf46569897",
max = 2,
salary = 60,
admin = 0,
vote = false,
illegaux = true,
hasLicense = false,
candemote = false,
category = "3 - Métiers Illégaux",
customCheck = function(ply) return CLIENT or
table.HasValue({"VIP"},ply:GetNWString(usergroup))
end,
customCheckFailMsg = "Ce job est réservé au V*I*P",
})
Voici mon erreur :
Please check your console for more information!
[ERROR] A runtime error has occurred in "addons/darkrpmodification/lua/darkrp_customthings/jobs.lua" on line 152.
The best help I can give you is this:
bad argument #1 to 'GetNWString' (string expected, got nil)
Hints:
- No hints, sorry.
Voilà si quelqu'un peut m'aider ça serais gentil.
TEAM_PSYCO = DarkRP.createJob("Meurtrier Fou VIP", {
color = Color(33, 189, 31, 20),
model = {"models/player/nihilus.mdl"},
description = [[Vous tuer en toute discression]],
weapons = {"ephone"},
command = "989766fsfshjuklf46569897",
max = 2,
salary = 60,
admin = 0,
vote = false,
illegaux = true,
hasLicense = false,
candemote = false,
category = "3 - Métiers Illégaux",
customCheck = function(ply) return CLIENT or
table.HasValue({"VIP"},ply:GetNWString(usergroup))
end,
customCheckFailMsg = "Ce job est réservé au V*I*P",
})
Voici mon erreur :
Please check your console for more information!
[ERROR] A runtime error has occurred in "addons/darkrpmodification/lua/darkrp_customthings/jobs.lua" on line 152.
The best help I can give you is this:
bad argument #1 to 'GetNWString' (string expected, got nil)
Hints:
- No hints, sorry.
Voilà si quelqu'un peut m'aider ça serais gentil.