Hey so I am creating a server right now for dark rp. I am having trouble with creating a code so that users are able to see vip jobs (Donators).
Can someone please help me out.
Here is my swat job for example.
[CODE]TEAM_SWATC = AddExtraTeam("S.W.A.T Chief", {
color = Color(0, 6, 255, 255),
model = "models/player/gasmask.mdl",
description = [[This is a donator special job,
You are in charge of the S.W.A.T. force. Assist the Civil
Protection in dangerous situations such as raids and riots with better
weapons and tactics. ]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_mad_deagle", "weapon_mad_m4", "weapon_mad_mp5", "stunstick", "door_ram", "weaponchecker", "taser"},
command = "swatc",
max = 1,
salary = 200,
admin = 0,
vote = true,
hasLicense = true,
NeedToChangeFrom = TEAM_SWAT,
customCheck = function(ply)
return ply:IsUserGroup("donator") or ply:IsAdmin()
end,
CustomCheckFailMsg = "You need to be a donator to be able to become this job."
})[/CODE]
Thank you!
Sorry, you need to Log In to post a reply to this thread.