Problem regarding class

[lua]
TEAM_SAINTLOCKS = DarkRP.createJob(“Saints Lockpicker”, {
color = Color(201, 26, 190, 255),
model = {“models/player/group03/male_02.mdl”, “models/player/group03/female_05.mdl”},
description = [[Tier ONE of the Saints Jobs!]],
weapons = {“weapon_lockpick”},
command = “saintsl”,
max = 15,
salary = 10,
customCheck = function(ply) return ply:GetPData(“saintsrank”) = 1 end,
admin = 0,
vote = false
}
)
[/lua]

It’s saying there’s a missing end near ‘=’ on this line

[lua] customCheck = function(ply) return ply:GetPData(“saintsrank”) = 1 end, [/lua]

But I can’t see why?

Should be ply:GetPData(“saintsrank”) == 1 You’re trying to set it, not compare it.

Thanks :slight_smile: