• DarkRP Limit Jobs?
    1 replies, posted
Hello, I'm trying to help a friend make a job only for certain ranks. This doesn't work. [CODE]if:plyusergroup ("user", "member", "trusted") then return TEAM_PROTECT nil[/CODE] They're the groups that I don't want to have access to this job. I don't even know if it's the TEAM_PROTECT I need to return nil.
if using ulx, put this beneath your job [lua]TEAM_HIT = AddExtraTeam("Hitman", { color = Color(5, 81, 12, 255), model = "models/player/leet.mdl", description = [[The Hitman kills people for money, minimum price for a hit is 200]], weapons = {"weapon_mad_usp"}, command = "hitman", max = 2, salary = 55, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return ply:GetUserGroup() == "something" or ply:GetUserGroup() == "something else" or ply:IsAdmin() end })[/lua] note the comma after false this will allow the job for certain groups, not restrict
Sorry, you need to Log In to post a reply to this thread.