I'm trying to make a VIP only job and I got this error.
Error :
There is an opening '{' bracket at line 273, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 286.
Lines :
TEAM_HITMANPRO = DarkRP.createJob("Hitman Profissional", {
color = Color(255, 0, 63, 255),
model = {"models/wheatleymodels/soma/simon_divingsuit.mdl"},
description = [[Você é um Hitman Profissional, você é um veterano em matar pessoas sem deixar pistas.]],
weapons = {"weapon_fists", "fas2_m82"},
command = "hitmanpro",
max = 0,
salary = 5000,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "VIP",
customCheck = function(ply) return CLIENT or
table.HasValue({"vip", "vip+", "vip++", "admin+", "superadmin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "",
})
I really don't know what is wrong.
You can use with this if you want
customCheck = function(ply) return
table.HasValue({"vip", "vip+", "vip++", "admin+", "superadmin" }, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Donator Only!",
category = "Criminals",
})
Thanks very much Ari and Bluzer.
Unrelated, and I don't want to seem rude but it's spelled "Professional". Not trying to be a dick but correct grammar and spelling will go a long way in boosting the popularity of your server
.
He didn't mess up the spelling. Its portuguese
May as well delete myself off the planet now. Probably should have read the rest.
Sorry, you need to Log In to post a reply to this thread.