Donator Jobs dont work

This dont work for me :

TEAM_JOURNALISTE = DarkRP.createJob(“Journaliste”, {
color = Color(255, 157, 0, 255),
model = “models/Humans/Group02/Male_04.mdl”,
description = [[Il interview les personnes]],
weapons = {},
command = “journaliste”,
max = 1,
salary = 125,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return table.HasValue({“vip+”,“superadmin”,“vip”,“admin”,“moderateur”}, ply:GetNWString(“usergroup”)) end,
CustomCheckFailMsg = “This is Premium Member only!”})

Error in console :***

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

There is an opening ‘{’ bracket at line 20, but this bracket is never closed or not closed in time. It was expected to be closed before the ‘customCheck’ at line 33.


  • 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 -------

Change: CustomCheckFailMsg = “This is Premium Member only!”})

To: CustomCheckFailMsg = “This is Premium Member only!” )

Also, here’s a friendlier way to do the custom check:

[ NOTE ] Remove .html to view / copy .Lua …

If you use the example which adds the group to the second argument means only that group has access instead of the full list.

Also, this should be in the DarkRP topic relinked here: Generalized Lua Help ( Links to Wikis, Answers the question of “Where do I post a simple question or DarkRP Specific question”, links to other resources compiled by forum members )

Useful Programs ( SteamCMD, Autosizer, Desktops, Process Explorer ) and Notepad++ Upgrades