• [DARKRP] ULX - Question with jobs and groups
    5 replies, posted
TEAM_STAFF = DarkRP.createJob("Staff on Duty", {  color = Color(135, 37, 37, 0),  model = "models/player/combine_super_soldier.mdl",  description = [[You control the players of the server. You are allowed to use your powers when on the job. You can not role play.]],  weapons = {},  command = "staffonduty",  max = 8,  salary = 800,  admin = 0,   vote = false,  hasLicense = true, category = "Other",         customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "Trial Mod" or "Moderator" or "Senior Moderator" or "Admin" or "Head Admin" or "superadmin" end,         CustomCheckFailMsg = "You're not a staff member."      }) That is my code but I want to be able to know how to add on to this (the formatting is correct in code I have no idea what it is doing) I want it so I can add multiple groups to a job that people can join using this code         customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "Trial Mod" or "Moderator" or "Senior Moderator" or "Admin" or "Head Admin" or "superadmin" end,         CustomCheckFailMsg = "You're not a staff member."
customCheck = function(ply) return table.HasValue({"premium", "dmoder", "dadmin", "specadmin", "superadmin"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "This is for VIP only",
ply:GetNWString("usergroup") == "Trial Mod" or "Moderator" or "Senior Moderator" or "Admin" or "Head Admin" or "superadmin" is not doing what you think it's doing at this stage, it's just testing: if usergroup = Trial Mod OR if Moderator OR if Senior Moderator etc.
@VALERY.RETRIME is there a way to make it so it is visible to everyone though? but still have the group check
What admin mode do you use? (ULX/Evolve/Serverguard) Also you need to give me that console error here Visible or not it's depending on your F4 menu I think
ULX
Sorry, you need to Log In to post a reply to this thread.