Help with customcheck

local vipRanks = {
[“owner”] = true,
[“superadmin”] = true,
[“admin”] = true,
[“headadmin”] = true,
[“moderator”] = true,
[“developer”] = true,
[“coowner”] = true
}

FindMetaTable("Player").Isvip = function(self)
	return vipRanks[self:GetUserGroup()]
end

end

how would i put that code into

customCheck = function(ply) return ply:GetNWString("usergroup") == "vip" or ply:IsAdmin() end, 

please?

Thanks


customCheck = function(ply) return ply:Isvip() end,

learn basic lua pls

Also, run :lower () on the GetUserGroup return

can u guys just me the custom check itself please?

He already did