function ur.canTool( ply, tr, tool ) local function excluded() if !ur.tools[tool] then return true end if ur.config.tools == "false" then return true end if ur.config.admin_exclude.tools == "true" and ply:IsAdmin() then return true end if table.HasValue(ur.tools.excluded, ply:GetUserGroup()) then return true end if table.HasValue(ur.tools[tool], ply:GetUserGroup()) then return true else return false end return false end if !excluded() then ULib.clientRPC( ply, "ur.canTool", false ) return false end end hook.Add( "CanTool", "URestrict_CanTool_Hook", ur.canTool )