0 Members and 1 Guest are viewing this topic.
undercover:defaultAccess( ULib.ACCESS_SUPERADMIN )
Doesn't work.The problem is that I have a undercover script, but everyone can use it and that is after I restrict it to superadmins only. When I remove admins access to it via ULX groups etc, then no one can use it..
function ulx.undercover( calling_ply ) if calling_ply:IsUserGroup("owner") then calling_ply:SetUserGroup("undercover") elseif calling_ply:IsUserGroup("undercover") then calling_ply:SetUserGroup("owner") end --ulx.fancyLogAdmin( calling_ply, true, "#A went undercover" )endlocal undercover = ulx.command( CATEGORY_NAME, "ulx owner", ulx.undercover, "!under1", true )undercover:addParam{ type=ULib.cmds.PlayerArg }undercover:defaultAccess( ULib.ACCESS_SUPERADMIN )undercover:help( "UNDERCOVER BIIIIACH!!" )