LUA PROBLEM

  • Initiateur de la discussion
M

Mehdi2904

Geek suprême
Messages
848
Score réaction
88
Points
145
J'ai un LUA problem. Je sais qu'ils disent nimporte quoi mais:

[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 20.
The best help I can give you is this:

Right before the 'TEAM_STAFF', 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?


---------------------------------------------------------

TEAM_STAFF = DarkRP.createJob("Staff", {
color = Color(0, 0, 0, 255),
model = {"models/player/anon/anon.mdl"},
description = [[Job réservé aux membres du staff]],
weapons = {},
command = "staff",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin","admin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Vous devez être un membre du staff",
})
 
  • Initiateur de la discussion
M

Mehdi2904

Geek suprême
Messages
848
Score réaction
88
Points
145
Je suis vraiment dans la merde la :-(
 
  • Banni
rexlafureur

rexlafureur

Psychopathe
Messages
1 054
Score réaction
83
Points
220
Prend celui la est dit moi :)

Code:
TEAM_STAFF = DarkRP.createJob("Staff", { color = Color(0, 0, 0, 255), model = {"models/player/anon/anon.mdl"}, description = [[Job réservé aux membres du staff]], weapons = {"weapon_fists"}, command = "staff", max = 0, salary = 0, admin = 0, vote = false, hasLicense = true, jobType = "priv", candemote = false, PlayerLoadout = function(ply) ply:SetHealth(999) end, customCheck = function(ply) return CLIENT or table.HasValue({"superadmin","admin"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "Vous devez être un membre du staff",
})
 
Discord d'entraide
Rejoignz-nous sur Discord