Hi, my jobs are having lua errors and I am not sure what is wrong. Here is the job can anyone help?
TEAM_SWATLEADER = DarkRP.createJob(“SWAT Leader”, {
color = Color(0, 58, 255, 255),
model = {“models/player/bfh_enforcer.mdl”},
description = [[You run the swat team, good luck.]],
weapons = {“m9k_scar”, “m9k_spas12”, “m9k_deagle”},
command = “SWATLEADER”,
max = 1,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "SWAT ",
PlayerSpawn = function(ply)
ply:SetMaxHealth(200)
ply:SetHealth(200)
ply:SetArmor(150)
end,
customCheck = function(ply) return
table.HasValue({“Donator”, “superadmin”, “Owner”, “Co-Owner”}, ply:GetNWString(“usergroup”))
end,
CustomCheckFailMsg = “This job is donator only!”,
})