General > Developers Corner

How to set jobs for certain groups

<< < (2/2)

Aaron113:
Player:CheckGroup


--- Code: ---customCheck = function(ply) return ply:CheckGroup("owner") end
--- End code ---

That should do it.  Just change it to whatever rank you want and anything above it will have access.

Caustic Soda-Senpai:

--- Quote from: Aaron113 on March 11, 2015, 04:48:25 PM ---

--- Code: ---customCheck = function(ply) return ply:CheckGroup("owner") end
--- End code ---


--- End quote ---

That may or may not work. DarkRP likes to be picky.

Aaron113:
As long as the customcheck works the way he has it shown, it should work?  It returns a boolean just like his example does.  I guess it depends on whether he did it correctly or not.

BobTheDuck69:
For one or more rank to use it the ranks must be seperated by commas.

Navigation

[0] Message Index

[*] Previous page

Go to full version