• Help with darkrp commands
    1 replies, posted
In darkrp how do u change what groups are allowed to like use the /setmoney command for example? I know it defaults to superadmins and higher because of ply:IsSuperAdmin() but how do I change it for like let's say only people who have the owner rank can do it would it be like ply:GetUserGroup("owner") but where do I change that setting?
Well, what you need to do is this: Open your jobs.lua and look for the job you want to be edited. Then, underneath "candemote" You want to add this: [CODE]customCheck = function(ply) return CLIENT or table.HasValue({"group1","group2"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "<Put message here!> ",[/CODE] You can set group1/group2 to whatever group you want, or add more by copy and pasting. If you want to edit the message that shows up, just edit that!
Sorry, you need to Log In to post a reply to this thread.