General > Off-Topic

REALLY NEED HELP WITH ULX

<< < (2/4) > >>

jack12321123:
Maybe its a problem with the group "user".
When i go to set someone as user through the web console, it says:
Command "ulx adduser", argument #2: invalid group "user" specified
 And when i go to set someone as user through the ulx menu, the group "user" is the only group NOT on the list.
Any ideas?
Thanks

jack12321123:

--- Quote from: iViscosity on October 29, 2016, 06:10:48 AM ---That is strange. I don't believe you can change user group inheritance, so more than likely it was your jobs that got changed. I'd suggest looking at the problem jobs and check the customCheck.

You should set inheritances to the group you want directly below it ( ie, superadmin inherits from admin by default )

--- End quote ---
This is what the customcheck line looks like in the jobs file:
function(ply) return table.HasValue({"donator", "vip", "superadmin"}, ply:GetUserGroup() == "donator") end,

jack12321123:
Yeah Now I realise its a problem with the custom check, Any idea on how a code a custom check For donator jobs, which allows donators and vip's to become donator, And also a separate custom check which allows vip's to become vip jobs.
Thanks
Jack

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version