-snip-
customCheck = function(ply) return ply:GetNWString("usergroup") == "Clone Trooper" and customCheck = function(ply) return ply:GetNWString("usergroup") == "owner" end,
CustomCheckFailMsg = "This job is donator only."
There's a major flaw in your code there.
customCheck = function(ply) --[[ ... ]]-- and customCheck = function(ply) --[[ ... ]]-- end
While this makes sense grammatically, this is invalid in Lua's syntax.
You should instead write something like:
customCheck = function(ply)
return ply:GetUserGroup() == "Storm Trooper" or ply:GetUserGroup() == "owner"
end
This assumes, of course, that you want inheritance to be negligible, and ONLY the groups Storm Trooper and owner should be able to take this job.
The long-winded explanation is that, in Lua, a variable cannot contain two values like you seem to want it to have there. Instead, variables (or fields, like customCheck) may only have one value (or in this case, may only be one function). You tried to assign two functions to one variable and, moreover, forgot to close the initial function before moving on to the next.
I would recommend doing some reading on the Lua programming language. It's actually not too hard to get into, and would help you immensely in working with servers.