VIP Classes for DarkRP

Hey, I wanted to make certain classes “vip” only, using ulx user groups, here’s what I got so far:
vipclasses = {

function VIPClasses( ply )
if ply:Team() == vipclasses and !ply:IsUserGroup( “vip” ) then
ply:Team() = TEAM_CITIZEN
Notify(ply, 1, 4, string.format(“That class is VIP only!”))
return false
hook.Add(meta:ChangeTeam( ply ), “vipclass”, VIPClasses)

For some reason I don’t know of, it doesn’t work… PLEASE HALP

I do have a code, but its not very usefull, there are very much bugs. And you can’t make people vip, because that part of the code is not working, so only admins can do vip jobs.
Want it? add me on steam: gameplayer4noob (Don’t troll about it, i choosed it when i was 9)

I have my old player.lua on pastebin if you want it. I did it when I was horrible at lua, so there are a lot of things that could’ve been done better, but it works:

EDIT: Obviously just change the items in donatorjobs to your classes and replace the evolve functions with ULX stuff.

EDIT 2: Whoops, didn’t see that this was originally posted in may of 2010… just saw it from the bump :confused:
A moderator should probably close this thread…