DarkRP Donator Ranks?

Hey guys, i’m trying to setup a darkrp server and was wondering if there is a way to code it with ulx so that if someone is in the donator group, they can use a certain class. I have a class called agent and i only want donators to be able to use it, thanks everyone so much! (PLEASE DON’T LEAVE COMMENTS ABOUT HOW DARKRP SUCKS IN THE COMMENTS! BE RESPECTFUL! THANKS!)

-reid

Try to search before you make a topic…
[lua]
TEAM_CITIZEN = AddExtraTeam(“Citizen”, {
color = Color(20, 150, 20, 255),
model = {
“models/player/Group01/Female_01.mdl”,
“models/player/Group01/Female_02.mdl”,
“models/player/Group01/Female_03.mdl”,
“models/player/Group01/Female_04.mdl”,
“models/player/Group01/Female_06.mdl”,
“models/player/Group01/Female_07.mdl”,
“models/player/group01/male_01.mdl”,
“models/player/Group01/Male_02.mdl”,
“models/player/Group01/male_03.mdl”,
“models/player/Group01/Male_04.mdl”,
“models/player/Group01/Male_05.mdl”,
“models/player/Group01/Male_06.mdl”,
“models/player/Group01/Male_07.mdl”,
“models/player/Group01/Male_08.mdl”,
“models/player/Group01/Male_09.mdl”
},
description = [[The Citizen is the most basic level of society you can hold
besides being a hobo.
You have no specific role in city life.]],
weapons = {},
command = “citizen”,
max = 0,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply)
return ply:GetUserGroup()==“donator”
end
})
[/lua]
Where “donator” is the rank that’s allowed to use the job.

Super sorry but thanks man!

Good job

Thanks :smiley:


(User was banned for this post ("Dumb Bump" - Asaratha))

If this is the gamemodes board, why are you posting about lua help here?

hence: your name is on the left no need to

-jexkid

This was already dealt with, Jexkid.

Read up.