Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: davidgamingx on February 25, 2016, 05:39:23 PM
-
ULib v2.52d (01/25/16)
ULX v3.62d (01/30/16)
So i know how to connect a darkrp job to a ulx group but the problem is when an owner becomes a job he no longer is an owner and is a regular user if so how do you fix this,
Example
Spawns as citizen but in the ulx group Owner !menu and switch ulx group to darth vader, i no longer have any perms or way to readd my self to owner unless going to console
-
The best thing I could think of is periodically checking if their current usergroup is allowed to be in their current darkrp job
http://wiki.garrysmod.com/page/timer/Create
http://wiki.garrysmod.com/page/Player/GetUserGroup
http://wiki.darkrp.com/index.php/Functions/Player/Shared/getJobTable
I couldn't find a on usergroup changed type hook, though I haven't used Lua in a while
-
Zmaster none of those work
-
Don't connect jobs to groups?
Server control access should have NO bearing on a job in a RP game.
Use teams or make new code that uses some variable called a job.
Sure, you may check on a group level to see if a job or job function is allowed, but you shouldn't have a group level tied to a job so that it changes group access.
If DarkRP uses 'group' access to define job (not just control what it can do in any job), then I have yet one more reason to dislike the DarkRP gamemode.
-
Zmaster none of those work
What do you mean they don't work
-
Surely I read that wrong..
You are saying you join a group and you become the Ulx group 'Darth Vader'??