General > Developers Corner
ULX usergroup for specific jobs in DarkRP
ldshaul01:
So I wan wondering if there was a way to set a specific usergroup, like for example making one named "Movie Manager," to a DarkRP job called Movie Manager so that that who ever is in that job gets temporarily set as "Movie Manager" so that they can have permission to use the PlayX entity.
I run an up-to-date version of DarkRP on my Garry's Mod server. I am running ULX. If you need anything else from me, just ask! :)
Avoid:
Hello,
take a look here on how to create a job.
Then add that user to your desired usergroup, using ucl.addUser
Avoid
ldshaul01:
--- Quote from: Avoid on September 04, 2014, 09:08:46 PM ---Hello,
take a look here on how to create a job.
Then add that user to your desired usergroup, using ucl.addUser
Avoid
--- End quote ---
Actually I just looked at the code and it says that you need to add a user ID. Does this mean that I can only designate specific players to having that job? or.. having the ULX access while they have that job?
Caustic Soda-Senpai:
I've seen how the Movie Manager for PlayX has been set up before. Can you provide the job code (if you have it) for the Movie Manager?
ldshaul01:
--- Quote from: Archang3L on September 05, 2014, 10:20:04 PM ---I've seen how the Movie Manager for PlayX has been set up before. Can you provide the job code (if you have it) for the Movie Manager?
--- End quote ---
This is the code for my movie manager. :)
TEAM_MOVIE = AddExtraTeam("Movie Manager", {
color = Color(0, 255, 162, 255),
model = {
"models/player/humans/suits1/male_01.mdl",
"models/player/humans/suits1/male_02.mdl",
"models/player/humans/suits1/male_03.mdl",
"models/player/humans/suits1/male_04.mdl"
},
description = [[Manage your own movie theater.]],
weapons = {},
command = "movie",
max = 1,
salary = 70,
admin = 0,
vote = false,
hasLicense = false
})
Navigation
[0] Message Index
[#] Next page
Go to full version