DarkRP Custom Check

I’m trying to have it so that everyone expect players under IsCP(), is allowed to purchase an item under my addentities.lua file using DarkRP’s customCheck.

This was the best thing I could come up with for a solution…


	customCheck = function(ply) return CLIENT or ply:IsCP() == false end,
	CustomCheckFailMsg = "Government officials are not allowed to purchase that!"

But of course it doesn’t work…

Any help?