Trying to add cars for a NPC spawner (TCB Dealer)

Not sure if this is the right place to post addon CFG help threads.
So, I added a NPC car dealer addon for my server, but I can’t get the custom checks to work.

Here’s the lines of code I’m having trouble with, it gives me no errors or anything, however no cars show up in the NPC car dealer menu.

TCBDealer.vehicleTable["audir8tdm"] = {
	name = "Ford Crown Victoria Police Cruiser",
	mdl = "models/sentry/crownvic.mdl",
	price = 0,
	customCheck = function(ply) return ply:GetUserGroup() == "Police Officer" or ply:GetUserGroup() == "Police Chief" end,
	CustomCheckFailMsg = "You need to be a police offcer to be able to spawn this car."

I know its one of the 2 last lines, I tested removing them which worked perfectly.

In your custom check you are checking to see if the player’s rank is a “Police Officer” and not their job. Use this function instead:


team.GetName may also help

Ohh, okay! This worked. Thank you! :>