General > Developers Corner

ULX customCheck for donator jobs not working

<< < (2/2)

Avoid:
Hello,
please do have a look at this.

Try CheckGroup("groupname") or IsUserGroup("groupname").

ldshaul01:

--- Quote from: Avoid on September 04, 2014, 09:33:37 PM ---Hello,
please do have a look at this.

Try CheckGroup("groupname") or IsUserGroup("groupname").

--- End quote ---

So if I have the code :
   customCheck = function(ply) return ply:GetNWString("usergroup") == "donator" or ply:IsAdmin() end,
   CustomCheckFailMsg = "You don't have the required rank to complete this action!",

How would I use your version of that check?

Caustic Soda-Senpai:
Do your groups have capitals in them or are they all lowercase?

ldshaul01:
All of my usergroups are lowercase.

Do I need to add the group through the ulx files? or is it fine to add the group through the admin menu in-game?

ldshaul01:
This issue has been solved :

http://facepunch.com/showthread.php?t=1422507

Navigation

[0] Message Index

[*] Previous page

Go to full version