Donator automatically goes to a certain job?

How do I make it where if someone purchases donator on my server, than I want it to be able to put them into a job automatically when they join again. Besides the “Citizen” job, I want them to be put into the “VIP Citizen.” Can someone provide some code on ways to get this to work? I’d highly appreciate it.


TEAM_DONATORJOB = DarkRP.createJob("Bob", {
        color = Color(80, 45, 0, 255),
        model = "models/player/corpse1.mdl",
        description = [[Bob is Bob]],
        weapons = {"weapon_crowbar"},
        command = "bob",
        max = 5,
        salary = 0,
        admin = 0,
        vote = false,
        hasLicense = false,
        customCheck = function(ply) return ply:IsUserGroup("donator") end,
        CustomCheckFailMsg = "You need to be a donator to become Bob."

Straight from the DarkRP wiki. This checks if user is UserGroup=donator and denies any one else to be that job. To add the default job, you would need to wander into the config files of DarkRP and look for a line of code setting the default job. Something like this

if ply:IsUserGroup("donator") function.setdefaultgroup("Bob") else function.setdefaultgroup("Citizen")
--doesn't work, you'll have to find the code for default job and replace function.setdefaultgroup___ with it.

Hope this helps!