• DarkRP - Hiding Categories
    1 replies, posted
I was wondering if there's a way to have a category only visible if you can become the jobs in it. I know there's the 'canSee' line, but I have no idea what to put after that in order to make it work, or if that line is even relevant with this.
Ended up figuring out the problem, I had to add code to the "canSee" line in categories: [QUOTE] canSee = function(ply) if team.GetName(ply:Team()) == "Job Name" then return true end end,[/QUOTE] I did this due to having certain jobs (for example SWAT) requiring the player to be Police first in the code: [QUOTE]NeedToChangeFrom = TEAM_POLICE,[/QUOTE] Just in case anyone wanted to know, which I doubt, but still. :pudge:
Sorry, you need to Log In to post a reply to this thread.