Ulysses

General => Developers Corner => Topic started by: ldshaul01 on September 04, 2014, 09:13:31 AM

Title: ULX usergroup for specific jobs in DarkRP
Post by: ldshaul01 on September 04, 2014, 09:13:31 AM
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! :)
Title: Re: ULX usergroup for specific jobs in DarkRP
Post by: Avoid on September 04, 2014, 09:08:46 PM
Hello,
take a look here (http://wiki.darkrp.com/index.php/DarkRP:Jobs) on how to create a job.
Then add that user to your desired usergroup, using ucl.addUser (http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.addUser)

Avoid
Title: Re: ULX usergroup for specific jobs in DarkRP
Post by: ldshaul01 on September 05, 2014, 07:01:45 AM
Hello,
take a look here (http://wiki.darkrp.com/index.php/DarkRP:Jobs) on how to create a job.
Then add that user to your desired usergroup, using ucl.addUser (http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.addUser)

Avoid

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?
Title: Re: ULX usergroup for specific jobs in DarkRP
Post by: Caustic Soda-Senpai 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?
Title: Re: ULX usergroup for specific jobs in DarkRP
Post by: ldshaul01 on September 06, 2014, 06:36:39 AM
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?

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
})
Title: Re: ULX usergroup for specific jobs in DarkRP
Post by: ldshaul01 on September 07, 2014, 11:34:40 AM
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?

?????
Title: Re: ULX usergroup for specific jobs in DarkRP
Post by: Caustic Soda-Senpai on September 07, 2014, 08:20:46 PM
And this IS for DarkRP 2.5.x correct?
Title: Re: ULX usergroup for specific jobs in DarkRP
Post by: ldshaul01 on September 08, 2014, 04:15:35 AM
And this IS for DarkRP 2.5.x correct?

That is correct.