DarkRP VIP jobs error

How do I make donor jobs?

Instead of that put this in your player.lua and edit for your needs.

	vipteams = {TEAM_VIP, TEAM_VIP}
	if table.HasValue( vipteams, t ) and !force and not self:IsAdmin() and not self:IsUserGroup("VIP") then
	GAMEMODE:Notify(self, 1, 4, string.format("You must be VIP/Respected to access this job"))

It didn’t work

Stop doing that method. It makes updating DarkRP much more of a hassle, and it’s just not needed.

OP, type this in your shared.lua where you want your donator jobs:

[lua]customCheck = function(ply)
return ply:IsUserGroup(“donator”)

Next time you have such question, you should take a look at THIS first.

Also, make sure you make the files read only so that they aren’t deleted if you purge the files.

If you use Git/SVN properly you don’t need to do that.

Hi for make jobs VIP Only Look That
I Use this code for my gameserver DarkRP

TEAM_VIP = AddExtraTeam(“VIP”, {
color = Color(0, 95, 255 ,127),
model = “models/player/arctic.mdl”,
description = [[Descriptions]],
weapons = {},
command = “vip”,
max = 30,
salary = 125,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return ply:GetNWString(“usergroup”) == “vip” or ply:IsAdmin() end,
CustomCheckFailMsg = “Only VIP.”

Have Fun

Thank you all for your help,
I very much appreciate it.

And if you want more ranks:

customCheck = function(ply) return CLIENT or ply:IsUserGroup(“super vip”) or ply:IsUserGroup(“moderator”) or ply:IsUserGroup(“superadmin”) or ply:IsUserGroup(“vipmod”) or ply:IsUserGroup(“admin”) or ply:IsUserGroup(“globaladministator”) end,
CustomCheckFailMsg = “TEXT”

Well make sure you actually HAVE those ranks before you add them to DarkRP.

A lot of those rank checks can be replaced by ply:IsAdmin()