I keep getting this error in console
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 97.
The best help I can give you is this:
There is an opening '{' bracket at line 77, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 97.
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 -------
This is the job
[QUOTE] TEAM_JEDI_KNIGHT = DarkRP.createJob("Jedi Knight", {
color = Color(255, 0, 229, 255),
model = {"models/grealms/characters/casualjedi/casualjedi_01.mdl", "models/grealms/characters/casualjedi/casualjedi_02.mdl", "models/grealms/characters/casualjedi/casualjedi_03.mdl", "models/grealms/characters/casualjedi/casualjedi_04.mdl", "models/grealms/characters/casualjedi/casualjedi_05.mdl", "models/grealms/characters/casualjedi/casualjedi_06.mdl", "models/grealms/characters/casualjedi/casualjedi_07.mdl", "models/grealms/characters/casualjedi/casualjedi_08.mdl", "models/grealms/characters/casualjedi/casualjedi_09.mdl"},
description = [[You're a Jedi Knight.]],
weapons = {"weapon_lightsaber", "weapon_752_dsbp"},
command = "knight",
max = 0,
salary = 165,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Jedi",
level = 75
customCheck = function(ply) return CLIENT or
table.HasValue({"Trial Moderator", "Moderator", "admin", "superadmin", "Owner", "jedi knight"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "You do not have the whitelist for this job",
PlayerLoadout = function(ply) -- this line is added. Remember a comma at the end of above line if it is not there.
ply:SetHealth(1800)
end,
})[/QUOTE]
Any ideas?
[QUOTE]There is an opening '{' bracket at line 77, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 97.
Hints:
- Did you forget a comma?[/QUOTE]
[CODE]level = 75,[/CODE]
[QUOTE=timz9;49970640][CODE]level = 75,[/CODE][/QUOTE]
Thanks a lot for the help. I know, rookie mistake. I made 1700 line+ code at 3.am.
Thanks for the help,
Sam.
Sorry, you need to Log In to post a reply to this thread.